vizhub-core / vzcode

Mob Programming Code Editor
MIT License
65 stars 13 forks source link

[Epic] Keyboard-based navigation #698

Open curran opened 4 months ago

curran commented 4 months ago

As a user editing code with VZCode, I want to be able to do as many things as possible without leaving the keyboard, so that my work can be more efficient (and silent).

Current behavior: one can't even tab through the files in the sidebar.

Desired behavior: one should be able to navigate between files and tabs using only the keyboard.

Subtasks:

curran commented 3 months ago

https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA

curran commented 3 months ago

Next step: try making the sidebar entries navigable with keyboard

Either using react-aria, or directly using the ARIA DOM API.

curran commented 3 months ago

Specific shortcut ideas:

curran commented 3 months ago

Current direction:

(these could as separate PRs)

curran commented 2 months ago

image

There's a bit of research to be done in terms of "best practices" for the interactions. I'm not sure exactly what it should be, but probably some combination of "tab", arrows, spacebar, and enter. These from Spectrum tree view look good!

https://spectrum.adobe.com/page/tree-view/#Keyboard-interactions