ccampbell / mousetrap

Simple library for handling keyboard shortcuts in Javascript
https://craig.is/killing/mice
Apache License 2.0
11.67k stars 969 forks source link

shift+# on the numpad fires both shift+# and # #206

Open zenkalia opened 10 years ago

zenkalia commented 10 years ago

pretty easy to recreate:

Mousetrap.bind 'shift+6', -> alert 'shifty'
Mousetrap.bind '6', -> alert 'less shifty'
zenkalia commented 10 years ago

oh and i tried specifying the action parameter but that didn't help either. :cry:

ghost commented 10 years ago

This also affects other key combinations, like these two:

Mousetrap.bind('o', function() { alert("0");} );
Mousetrap.bind('alt+o', function() { alert("1");} );