mousetrap icon indicating copy to clipboard operation
mousetrap copied to clipboard

Simple library for handling keyboard shortcuts in Javascript

Results 101 mousetrap issues
Sort by recently updated
recently updated
newest added

Hi, do you think could support for the gamepad API be in scope for this project? It'd be great to have a way to listen to gamepad keys the same...

Say you have a shortcut for `g s` and one for `g s p`. `g s p` won't work as the library triggers the callback as soon as it gets...

I'm trying to implement some callbacks when 2 keys happen simultaneously, like with `mod+x`, but using a specific letter, or using space. Is there a way I can do something...

I am trying to use the 'mousetrap-record' plugin. I've added all required scripts to my page, and then used the code from documentation: ``` Mousetrap.record(function(sequence) { // sequence is an...

Hi! First of all, let me thank you for creating such a great lib! Keep up the good work! Now, to my request. When registering sequences, Mousetrap gives user 1...

I've logged a few reports of this line: https://github.com/ccampbell/mousetrap/blob/master/mousetrap.js#L721 Throwing this error: `TypeError: Cannot assign to read only property 'which' of object '#'` I can't reproduce it myself and I'm...

ie set a shortcut for spacebar key if held for 300 ms

thx! i like this repo. there a [list](https://stackoverflow.com/a/19883965) about all the result of `navigator.platform`. maybe we lost something about opera mini: - Pike v7.6 release 92: Opera Mini 5 on...

when im trying to do the shortcut for mod+1, it activates the shortcut for mod+fn+1 (in electron app)