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

Listen for combo by key exclusion rather than inclusion #102

Open
PrimozRome opened this issue Mar 26, 2016 · 3 comments
Open

Listen for combo by key exclusion rather than inclusion #102

PrimozRome opened this issue Mar 26, 2016 · 3 comments
Assignees
Labels
Request Feature request or idea related issues.

Comments

@PrimozRome
Copy link

I would like to add keyboard listener for any key press except enter, space, shift, alt, ctrl, tab? Is this possible with KeyboardJS?

@iongion
Copy link

iongion commented May 18, 2016

How do you handle space or enter with it, tried:
keyboardJS.bind(' ', (e) => { console.log(e); });

But it is not working.

@RobertWHurst
Copy link
Owner

you can type space. if you have a look at the us locale you can see all of the key names https://github.com/RobertWHurst/KeyboardJS/blob/master/locales/us.js

keyboardJS.bind('space', (e) => { console.log(e); });

@RobertWHurst
Copy link
Owner

@PrimozRome It's not possible at this time, but It's not a bad idea for a feature at some point.

@RobertWHurst RobertWHurst added the Request Feature request or idea related issues. label May 30, 2016
@RobertWHurst RobertWHurst changed the title How can I add listener for any keypress Listen for combo by key exclusion rather than inclusion May 30, 2016
@RobertWHurst RobertWHurst self-assigned this Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Request Feature request or idea related issues.
Projects
None yet
Development

No branches or pull requests

3 participants