From: PatR Date: Sun, 19 Jun 2022 23:55:39 +0000 (-0700) Subject: fix #2779 - Windows GUI pulldown help menu \ X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=916cd4a57d70da5fd17ad44694e83fd5e6e844a0;p=nethack fix #2779 - Windows GUI pulldown help menu \ specifies duplicate accelerator keystrokes Reported and diagnosed nine and half years ago but never fixed. In the WinGUI-specific help menu (under the titlebar, not nethack's '?' command), both "&Long description of the game" and "&Longer list of game options" use &L as accelerator. Typing 'L' or 'l' highlights one of the entries, then is needed to execute it or typing another 'L' or 'l' unhighlights it and highlights the other. Other accelerators in that menu execute their entries immediately, without the need for . Change the first one to "Long description of the &game" so that 'G' or 'g' becomes its accelerator. That menu is missing several things that have been added to the menu for '?'. I put in placeholder comments for them but won't pursue them further. Untested. --- diff --git a/win/win32/NetHackW.rc b/win/win32/NetHackW.rc index 2dc66285f..740400608 100644 --- a/win/win32/NetHackW.rc +++ b/win/win32/NetHackW.rc @@ -76,18 +76,33 @@ BEGIN MENUITEM "&Lock Windows", IDM_SETTING_LOCKWINDOWS END POPUP "&Help" + // 3.7: HELP_LONG and HELP_OPTIONS_LONG both used to specify &L as their + // accelator. Typing 'L' or 'l' highlighted one of the two, then + // would execute it or typing another 'l' or 'L' would unhighlight the + // currently highlit one and highlight the other. All other accelerators + // just run the relevant entry without needing . HELP_LONG has + // finally been changed to &g for "game". + // + // "// {...}" lines are placeholders for missing entries that are more + // recent than this resource file. The wizard mode one may need to + // stay suppressed since it is conditional. BEGIN MENUITEM "&About ...", IDM_ABOUT - MENUITEM "&Long description of the game", IDM_HELP_LONG + MENUITEM "Long description of the &game", IDM_HELP_LONG MENUITEM "List of &commands", IDM_HELP_COMMANDS MENUITEM "&History of NetHack", IDM_HELP_HISTORY - MENUITEM "&Info on a character", IDM_HELP_INFO_CHAR + MENUITEM "&Info on a display character", IDM_HELP_INFO_CHAR MENUITEM "Info on what a given &key does", IDM_HELP_INFO_KEY MENUITEM "List of game &options", IDM_HELP_OPTIONS MENUITEM "&Longer list of game options", IDM_HELP_OPTIONS_LONG + // { dispfile_optmenu, "Using the %s command to set options." } //"'O'" + // { dokeylist, "Full list of keyboard commands." } MENUITEM "List of e&xtended commands", IDM_HELP_EXTCMD + // { domenucontrols, "List menu control keys." } MENUITEM "The &NetHack license", IDM_HELP_LICENSE + // { docontact, "Support information." } MENUITEM "NetHack for &Windows help", IDM_HELP_PORTHELP + // { dispfile_debughelp, "List of wizard-mode commands." } END END