Hacker News new | ask | show | jobs
by fortytw2 2331 days ago
This is neat, but the way blueprintjs handles Hotkeys is my absolute favorite of anything I've used.

https://blueprintjs.com/docs/#core/components/hotkeys

It's essentially a JS decorator `@HotkeysTarget` and then your component gets a `renderHotkeys()` method on it.