dmauro / Keypress

A keyboard input capturing utility in which any key can be a modifier key.
http://dmauro.github.io/Keypress/
Apache License 2.0
3.18k stars 313 forks source link

basic key binding not working as expected #140

Open scriptspry opened 6 years ago

scriptspry commented 6 years ago

Testcase:

https://jsfiddle.net/xf0sf6zg/

What I did:

keydown shift first, then keydown s

What happened:

"You pressed shift and s together." was logged twice!

What is expected:

That the message be logged just once.

Additional info:

The reverse is not true. keydown s, then keydown shift == message logged just once!!!