Keypress icon indicating copy to clipboard operation
Keypress copied to clipboard

would love to have an 'any' key.

Open notbenh opened this issue 8 years ago • 0 comments

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

notbenh avatar May 06 '16 15:05 notbenh