Hotwire Summer: Adding keyboard shortcuts and hotkeys to StimulusJS
A review of the ecosystem for adding hotkeys to your Stimulus controllers: stimulus-hotkeys, stimulus-use/useHotkeys, HotKey.js, and @github/hotkey
Keyboard shortcuts are a great way to level up your user experience and improve the accessibility of your web applications. Even if you aren’t ready for advanced hotkey schemes, small things like binding the `Escape`
key to close a sliding menu can have a big impact.
Stimulus doesn’t come with built-in support for hotkeys. As part of a recent project at Arrows, I evaluated the ecosystem and wanted to share my thoughts.
👉 Read it here: Adding keyboard shortcuts and hotkeys to StimulusJS
📣 Want to share? Join the discussion on Twitter
Stay boring!
- Matt