added shortcuts to invoke info screens from main menu (disabled by default)
[rocksndiamonds.git] / src / events.c
index 39a1e4e928b4ebe1b930742b6ed9b54496ac17f7..02378a71bd180f1423d82b33d0bdd3ad573bdc80 100644 (file)
@@ -2281,6 +2281,15 @@ void HandleKey(Key key, int key_status)
     return;
   }
 
+  if (game_status == GAME_MODE_MAIN &&
+      setup.internal.info_screens_from_main &&
+      (key >= KSYM_KP_1 && key <= KSYM_KP_9))
+  {
+    DrawInfoScreen_FromMainMenu(key - KSYM_KP_1 + 1);
+
+    return;
+  }
+
   if (game_status == GAME_MODE_MAIN || game_status == GAME_MODE_PLAYING)
   {
     if (key == setup.shortcut.save_game)