added key shortcut to dump identifiers for all gadgets on current screen
[rocksndiamonds.git] / src / events.c
index 000744c9e177a90e8dff21dcd2f7ffc78ae66ff1..22cfdcd12ebadba2d7084591f3d6ec9bac91ab12 100644 (file)
@@ -1760,6 +1760,14 @@ static void HandleKeysSpecial(Key key)
       DumpBrush_Small();
     }
   }
+
+  /* special key shortcuts for all game modes */
+  if (is_string_suffix(cheat_input, ":dump-gadget-ids") ||
+      is_string_suffix(cheat_input, ":dgi") ||
+      is_string_suffix(cheat_input, ":DGI"))
+  {
+    DumpGadgetIdentifiers();
+  }
 }
 
 void HandleKeysDebug(Key key)