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, `Alt+Space` keybinding is not working. `Alt+Space` activates the window menu. Codepen: [https://codepen.io/GNSubrahmanyam/pen/NMdXqO](https://codepen.io/GNSubrahmanyam/pen/NMdXqO) Please help me out to fix this issue. Thanks in Advance.

Hi Craig. Fantastic product! I have an Electron app that makes full use of Mousetrap and most of the shortcuts I use are single key, like "left", "home", etc. —...

Hello, The keyboard event "Mousetrap.bind('e', function() { zaehlen1(); });" are working in my mobile safari browser. But when I put the application on the ios home screen, then no keyboard...

Big thanks @ccampbell for creating this awesome library. Wanted to know if this library works only with browsers or on Electron too. Any update on this is appreciated.

It'd be cool if this could support double tap for letters on the keyboard. Example use case: when a user hits the right arrow once, a video fast forwards by...

Quoting from https://craig.is/killing/mice > Mousetrap is a standalone library with no external dependencies. It weighs in at around 2kb minified and gzipped and 4.5kb **minified**. is 4.5kb un**minified** meant here?

If there are multiple callbacks bound to a given key, e.g. ``` javascript Mousetrap.bind('a', callback1) Mousetrap.bind('a', callback2) ``` then using `unbind` nukes both of them. it'd be great to be...

I'm trying to implement "jumping" in a list, i.e. ctrl + jumps to in the list. How could I go about implementing this with Mousetrap?

Great software! I wish it had demo page to test different events detection. I often need to demonstrate the difference between `keypress` and `keydown` for internationalisation cases. Thanks!

It will be great if a callback can be bound to a whole range of characters. I use mousetrap to translate key input to an internal event system, so in...