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

key press support #96

Closed rajasri215 closed 9 years ago

rajasri215 commented 9 years ago

Why is this library based on keydown and keyup events and not on keypress. could you please brief the drawback or unavailability of features with keypress.

dmauro commented 9 years ago

Keydown and keyup events allow us to be more comprehensive. It gives the person using this library more choice about when events fire. If you want to mimic keypress behavior, you should use the keyup handler for your implementation details.