fixed bug with screen keyboard still being active during request dialogs
[rocksndiamonds.git] / src / screens.c
index ee53e0bff80341528592124d4d84a82899bf5500..d7e5016a54a7a71c0ea09416b53841db89fd4ac3 100644 (file)
@@ -4260,12 +4260,16 @@ static void HandleTypeNameExt(boolean initialize, Key key)
   }
   else if (key == KSYM_Return)
   {
+    StopTextInput();
+
     setTypeNameValues(name, pos, TRUE);
 
     active = FALSE;
   }
   else if (key == KSYM_Escape)
   {
+    StopTextInput();
+
     setTypeNameValues(name, pos, FALSE);
 
     active = FALSE;
@@ -4275,8 +4279,6 @@ static void HandleTypeNameExt(boolean initialize, Key key)
 
   if (!active)
   {
-    StopTextInput();
-
     SetGameStatus(game_status_last_screen);
 
     if (game_status == GAME_MODE_MAIN)
@@ -6694,6 +6696,7 @@ static struct TokenInfo setup_info_engines[] =
   { TYPE_SWITCH,       &setup.forced_scroll_delay, "Scroll Delay:"     },
   { TYPE_ECS_AGA,      &setup.prefer_aga_graphics, "Amiga Graphics Chipset:" },
   { TYPE_SWITCH,       &setup.prefer_lowpass_sounds,"Low-Pass Filter Sounds:" },
+  { TYPE_SWITCH,       &setup.prefer_extra_panel_items,"Show Dynamite and Keys:" },
   { TYPE_EMPTY,                NULL,                   ""                      },
   { TYPE_HEADLINE,     NULL,                   "Supaplex"              },
   { TYPE_SWITCH,       &setup.sp_show_border_elements, "Border Elements:" },