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

Providing an "on_keydown" handler shouldn't stop the key from working inside inputs. #152

Open Giwayume opened 4 years ago

Giwayume commented 4 years ago

I created a simple example:

https://jsfiddle.net/qs4v9mua/

If you try to use the "delete" key to remove characters from the input, it does nothing (unless you hold it down). However, if you use the "backspace" key, it works.

The only difference between the two configuration is the fact that the "on_keydown" handler is passed. How do I fix this so the configuration doesn't interfere with inputs?