Closed
Description
Current Behavior
Commands define aliases with hideFromHelp: true
to allow additional keyboard shortcuts.
For example:
em/src/commands/cursorDown.tsx
Lines 134 to 139 in 177c2a7
Expected Behavior
- Expand
Command.keyboard
to allowKey[]
. - Show the first
Key
in the array in Command Palette, Help modal, etc. - The commandKeyIndex will need to be adapted to support multiple keyboard shortcuts but still allow O(1) lookup.
- Consider adding one entry per keyboard shortcut (instead of one entry per command) so that
hashKeyDown
can still be used.
- Consider adding one entry per keyboard shortcut (instead of one entry per command) so that
- Remove command aliases that are no longer needed.