Free Ruby on Rails #145 StimulusJS Hotkeys without any external libraries. It just works!

01/09/2023 (9 months ago)
stimulusjs hotkeys javascript

Bring your app one step closer to pefection:
Assign keyboard hotkeys to let power users quickly navigate around your app!

For simple scenarios, you don't need any any libarary dependencies. 15 lines of StimulusJS can get you very far!

In this episode we will assign keyboard shortcuts to open different links in our application.

This code is not ruby on Rails specific. It's just HTML & StimulusJS!

Episode source code:
Based on this blogpost:

Sign in to join the conversation