How to list and document all the keyboard shortcuts #7023
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
Milestone
I see there has been some reworking of the keyboard shortcuts recently. The relevant tools are in
utils/keycodes.js
. There are functions for the raw shortcuts and the ones to display in a human readable form, there's a well defined list of modifers, etc. It's a good improvement, well done.However, users need to know all the available keyboard shortcuts. Sooner or later there will be the need to have a place (internal, external?) to list all the shortcuts. Also, there will be the need to document them somewhere in the handbook.
Even as developers, we don't know how many (and which) keyboard shortcuts are currently available. The only way is to manually look for them through the codebase.
I'd like to propose to consider to make this way easier. Maybe, there should be a centralized place, a configuration file that lists all the shortcuts and can then be imported in the various components when needed? Any feedback and suggestions very welcome.
The text was updated successfully, but these errors were encountered: