Skip to content

Listen for combo by key exclusion rather than inclusion #102

Description

@PrimozRome

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

Activity

  1. iongion commented on May 18, 2016

    @iongion

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

    But it is not working.

  2. RobertWHurst commented on May 19, 2016

    @RobertWHurst
    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); });
  3. RobertWHurst commented on May 30, 2016

    @RobertWHurst
    Owner

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

  4. changed the title [-]How can I add listener for any keypress[/-] [+]Listen for combo by key exclusion rather than inclusion[/+] on May 30, 2016
  5. self-assigned this
    on Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

RequestFeature request or idea related issues.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions