removed leaving screens with "Escape" key if gadgets are active
[rocksndiamonds.git] / src / events.c
index 7e1f293f9b067cf5792ac4385f1e24a708a3e8b4..0c5b2bc1354f5ad40477daa9ed5ccde37b3ff689 100644 (file)
@@ -2081,10 +2081,7 @@ void HandleKey(Key key, int key_status)
   HandleKeysSpecial(key);
 
   if (HandleGadgetsKeyInput(key))
-  {
-    if (key != KSYM_Escape)    // always allow ESC key to be handled
-      key = KSYM_UNDEFINED;
-  }
+    return;            // do not handle already processed keys again
 
   switch (game_status)
   {