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

would love to have an 'any' key. #113

Open notbenh opened 8 years ago

notbenh commented 8 years ago

Currently it seems that all event traps are specificly bound to an key or key sequence. Though I would love to be able to be vague with my definitions or even have a fall thru that would catch any instances of any key event that is not already accounted for in an exclusive definition. For example if I wanted to build a very simple text editor I would want to do something like:

1. CTRL-s -> save to localstore
2. CTRL-*, ALT-* -> ignore and let the browser default to expected action (ie copy/paste)
3. * -> append $key to $some_div