SDL icon indicating copy to clipboard operation
SDL copied to clipboard

Add SDL_HINT_WINDOWS_DISABLE_MENU_MNEMONICS.

Open rudolfwalter opened this issue 3 years ago • 4 comments

Add a new Windows-only hint, SDL_HINT_WINDOWS_DISABLE_MENU_MNEMONICS, to make it possible to select whether the behavior of pressing Alt+something is better suited for graphics-only applications or applications that also have UI elements.

See #6726.

rudolfwalter avatar Dec 02 '22 05:12 rudolfwalter

The word "mnemonics" doesn't immediately convey the menu options to me. Is correct to use the word "shortcuts" instead?

slouken avatar Dec 02 '22 20:12 slouken

I don't believe it would be correct to call them shortcuts, no. Shortcuts usually refer to the key chords used to activate a command independently of menus. For example in Notepad, the shortcut for the "Cut" command is Ctrl+X, but you can also pull up the Edit menu using its mnemonic Alt+E, and then press the mnemonic t for Cut.

Now it's true that not everyone calls them mnemonics, but from what I can tell, a majority do:

rudolfwalter avatar Dec 03 '22 02:12 rudolfwalter

@slouken If there is anything I can do to get this unblocked, please let me know.

rudolfwalter avatar Dec 19 '22 10:12 rudolfwalter

Since the default behavior is to disable them, let's rename the hint SDL_HINT_WINDOWS_ENABLE_MENU_MNEMONICS and flip the logic?

slouken avatar Dec 19 '22 17:12 slouken

Sure, done and done.

rudolfwalter avatar Dec 21 '22 13:12 rudolfwalter