google / blockly-keyboard-experimentation

Apache License 2.0
2 stars 4 forks source link

feat: Keyboard shortcut modal dialog #75

Closed cpcallen closed 2 weeks ago

cpcallen commented 2 weeks ago

Adds a modal dialog to show a categorised list of Blockly keyboard shortcuts. The dialog is triggered using the '/' key.

At the moment the categories and shortcut names are manually curated, but the assigned shortcuts themselves are taken from the Blockly shortcut registry.

Fixes #723.

This is just #73 rebased onto current main branch, with minor tweaks for style and formatting; thanks to @bmxedd for all of the actual code.