hotkeys-js
hotkeys-js copied to clipboard
➷ A robust Javascript library for capturing keyboard input. It has no dependencies.
Hey there. I'm a disappointed that this library lifts code directly from my Keymaster library without any attribution. Here's my library: https://github.com/madrobby/keymaster Your library is essentially a substantial clone, reusing...
just wondering if anyone had any suggestions for keyboard shortcuts on an iPad software keyboard? i am using: hotkeys('ctrl+7, command+7', function(event, handler) { ... to show and hide a feature...
`hotkeys.pause()` will stop listening to all hotkeys. `hotkeys.resume()` will start listening to all hotkeys if paused. If this method was called but not paused, then it should do nothing.
The event `keyup` is fired when a key is released (aka not pressed), so why is `hotkeys.isPressed(key)` still returning true for that key that fired that event?
I am creating a project in Norwegian, and wish to add "alt + å" as a hotkey. When i use useHotkeys('*', (e) => console.log(e)); i can see that it is...
I added some hot keys in a web app using f1-f5. This worked great until I realized I liked having f5 for browser refresh. Could a long press feature be...
In https://github.com/jaywcjlove/hotkeys/pull/73/files#diff-1c90ff38a08209f9ebd4d05d1e43358eR28, the filtering was changed to no longer ignore hotkeys on `` elements. This isn't mentioned in the PR, so I'd guess that this was a mistake. This behaviour...
Hi, import hotkeys from 'hotkeys-js'; hotkeys('ctrl+s', function (e) { alert('do something', e); }); If I keep holding ctrl+s, this event keep getting fired, Is there a way to stop that?
Thank you for creating this library, it's extremely easy to use and very helpful! I wanted to set a shortcut to 'ctrl+t', but when I tested it in Chrome, it...