3 ms·
I did a library that works the opposite way: given a key event, what's the string that (Js-)hotkeys needs to bind an event handler to that event? Wrote it for
by nostrademons 18y ago
I did a library that works the opposite way: given a key event, what's the string that (Js-)hotkeys needs to bind an event handler to that event? Wrote it for GameClay, where we needed an easy way for users to specify keybindings in games, but it may be useful if you want eg. user-configurable hotkeys.
It's sorta half-open-sourced: up on GitHub (http://github.com/nostrademons/keycode.js/tree/master http://github.com/nostrademons/keycode.js/tree/master), but I haven't gotten around to writing up real documentation, working out the kinks, or doing a formal release yet.