Ruby on Rails #145 StimulusJS Hotkeys without any external libraries. It just works!
3 months ago
·
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: https://github.com/yshmarov/superails/pull/176/files
Based on this blogpost: https://blog.corsego.com/stimulusjs-hotkeys
Comments
Sign in to join the conversation
Recommended based on what you are watching now

08:07
Ruby on Rails #108 How to use the Browser Geolocation API with Rails

16:43
Ruby on Rails #100 Browser tab title notifications

42:19
Rails 7 #119 Trello Clone. Advanced Drag and Drop Sortable Lists with Hotwire

Rails World - Hotwire Cookbook - Yaroslav Shmarov: Common Uses, Essential Patterns & Best Practices -

09:24