added optional main menu button to directly show level set info
[rocksndiamonds.git] / src / events.c
index 39a1e4e928b4ebe1b930742b6ed9b54496ac17f7..21d9b5a3c23e529c6e6a525921ca24a587c936b3 100644 (file)
@@ -2281,6 +2281,16 @@ void HandleKey(Key key, int key_status)
     return;
   }
 
+  if (game_status == GAME_MODE_MAIN &&
+      (setup.internal.info_screens_from_main ||
+       leveldir_current->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)