mousetrap
mousetrap copied to clipboard
Simple library for handling keyboard shortcuts in Javascript
There is [a known issue](https://stackoverflow.com/questions/21055270/javascript-keypress-event-not-raised-on-android-browser) with the virtual keyboard on most Samsung devices (probably some other brands too) that wont fire keyboard events properly. Mousetrap works perfect with iPhones, iPads,...
Binding `"mod+,"`, `"shift+."` or just `"."` works: Mousetrap.bind("mod+,", event => { console.log("!"); }); Mousetrap.bind("shift+.", event => { console.log("!"); }); Mousetrap.bind(".", event => { console.log("!"); }); But binding `"mod+."` doesn't: Mousetrap.bind("mod+.",...
I want to allow users to add comments after **hitting 'a' then 'r' then capture the comment/all keydown and then stop when click on 'enter'** like: ``` Mousetrap.bind( 'a r...
Hello, When i try to run this keybind ` Mousetrap.bind('ctrl+m', menu()); function menu(){ alert("Hi"); }; ` i get this error `Uncaught TypeError: a is not a function at f (mousetrap.min.js:5)...
In our application we're using multiple mousetraps on different elements for context-sensitive keybindings, and are having issues with keyboard shortcut collisions between the mousetraps. e.g. `ctl+shift+k` in the global scope...
Then we can make instance unbind event from document
Hi, I want to bind 'k' to one behaviour but 'k+j' and 'k+l' to another. If I keep the keys pressed, both keys trigger. However, when I press 'k+j', 'k'...
I've just come across MouseTrap and think it's a fantastic framework. I'm attempting to wrap it with an Aurelia custom attribute but I wanted to be sure my chosen method...
After updating to chrome Version 70.0.3538.77 (Official Build) (64-bit), all shortcuts made sith mousetrap.js stopped working.