keithamus / jwerty

⌨ Awesome handling of keyboard events
http://keithamus.github.io/jwerty
Other
1.21k stars 107 forks source link

Key combo triggers on single key. #50

Open schoening opened 10 years ago

schoening commented 10 years ago

Shouldn't this only trigger when both 'w' and 'e' are pressed? It triggers when 'w' is pressed.

jwerty.key('w+e', function () { console.log('w+e') });
Gedrovits commented 8 years ago

To be honest you should step back and think about that. Is this really a bug? Most of the shortcuts consist of modifier keys and one alphanumeric character. I think it's done like that for a reason.