keymaster
keymaster copied to clipboard
A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
unbind hotkey contains ',' will error
For use with SvelteKit, where the js code is run on the server.
Adds support for string modifier keys to isPressed. Currently, key.isPressed('command') does not work when key.isPressed(91) does.
Support 'INSERT' Key also.
Prevents use of window when it is not defined to allow server side rendering
I find it handy to reference the numpad keys.
Added pause to the special key map, using keycode 19, and updated readme to match.
There is a small typo in keymaster.js. Should read `necessary` rather than `neccessary`.
Say I want to make a command like key('ctrl++'). Is this possible? (So the user has to press ctrl and the plus sign). So for me that is holding ctrl...
https://github.com/jaywcjlove/hotkeys The resemblance is troubling...