mousetrap
mousetrap copied to clipboard
Simple library for handling keyboard shortcuts in Javascript
At the moment, it seems that .bind only works with strings, being able to bind from [KeyboardEvent.code](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/code) would be nice too (with probably a fallback for Edge and IE). The...
Changes to ensure that keyup fires when combination consists of multiple modifiers and ends with a modifier key.
I'd be great if each sequence could be assigned its own timeout (i.e. as part of binding). I got an app where we'd like to have some sequence to have...
hello i have problem with tinymce editor i use the global plugin, this code not working inside tinymce, any suggestion? ``` JS Mousetrap.bindGlobal(['ctrl+s', 'command+s'], function (e) { if (e.preventDefault) {...
Steps to reproduce Open this fiddle on chrome on a mac http://jsfiddle.net/3rtfqpm6/ click the result tab and press `ctrl+left` Expected result: Alert box with 'Hi' Actual result: Nothing happens
Hello, while the effort you guys made is highly appreciated - the default behaviour of overriding bindings is not expected/standard and will render this lib unusable for a lot of...
Variable "i" from for-cycle was undeclared, so when the code was run in strict mode, it failed. (As I am doing the change via GitHub online editor, I am not...
Removing test and config files in npm package. Left plugin files though I am wondering if we need these. npm pack output: ``` npm notice npm notice 📦 [email protected] npm...
Trying to use this with https://github.com/wareset/svelte-use-mousetrap + https://github.com/sveltejs/kit and not able to get it work due to the lack of ESM export in the package. ``` > Cannot use import...
Trying to use this with https://github.com/wareset/svelte-use-mousetrap + https://github.com/sveltejs/kit and not able to get it work due to the lack of ESM export in the package. ``` > Cannot use import...