Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
notbenh opened this issue May 6, 2016 · 0 comments
Open

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

notbenh opened this issue May 6, 2016 · 0 comments

Comments

@notbenh
Copy link

notbenh commented May 6, 2016

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants