ShizukuIchi/winXP

Keyboard shortcuts support

RonnyO opened this issue · 2 comments

Another big meta-feature which could be used in all apps and desktop itself.

  • Win key to toggle Start Menu
  • Arrow keys to change selection between items (in desktop, explorer, menus etc.)
  • Alt to enter menus, and holding alt would reveal underscores to highlight other shortcuts in menus
  • Ctrl+Alt+Del, if available?

I'd recommend react-hotkeys for the heavy lifting.

Don't forget the classic Alt+F4

  • Enter/Space to activate dialog boxes.
  • Tab to switch between elements in a single window (right now, it switches between everything visible on-screen).

I think that HTML lacks the concept of "windows" which can take keyboard focus whenever focused, and trap tab-order within that window. (Apparently it's possible but fiddly: https://bitsofco.de/accessible-modal-dialog/#5whileopenpreventtabbingtooutsidethedialog https://medium.com/@islam.sayed8/trap-focus-inside-a-modal-aa5230326c1b )