smcameron / space-nerds-in-space

Multi-player spaceship bridge simulator game. Captain your starship through adventures with your friends. See https://smcameron.github.io/space-nerds-in-space
GNU General Public License v2.0
723 stars 73 forks source link

Allow and display keyboard shortcuts in the quit dialogue #352

Open heaventwig opened 9 months ago

heaventwig commented 9 months ago

Currently the quit dialogue pops up with a flashing cursor having selected the "don't quit" option button; there's also a "quit" button. The space bar activates the selected option, hitting ESC again jumps back out of the dialogue box, and arrow keys allow the user to switch which button is selected.

If this enhancement were implemented, the buttons would indicate keyboard shortcuts, for example by underlining the Q of QUIT and changing the default selection to "ESC — DON'T QUIT" or similar.

If this were implemented along with the "return to network lobby" enhancement, that button would also have a keyboard shortcut, such as N.

Enhancements like this are intended to make the interface clearer and more welcoming to new players, and more accessible to players with mousing limitations.

As the dialogue already does provide full keyboard control, this enhancement would merely reduce by one the number of keystrokes required for a keyboard-only user to quit (and/or return to network lobby), so it's probably a lower priority than other similar access enhancements.

The dialogue as it exists is used significantly less often by new players than any of the station screens, making it a low priority vs other onboarding enhancements too.