Skip to content

Secondary key symbols not firing event #164

Description

@attenzione

Describe the bug
Listening secondary key symbols (!@#$%^&*()_+?) not firing event.
However binding primary key together with secondary will work.

Example code

let keys = ['!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '+', '?'];
keyboardjs.on(keys, (event) => {
  console.log(event); // no output
});

keys = [...keys, '1', '/'];
// keys = ['!', '@', '#', '$', '%', '^', '&', '*', '(', ')', '_', '+', '?', '1', '/']
keyboardjs.on(keys, (event) => {
  console.log(event); // output from "!", "?", "/", "1"
});

Expected behavior
Expecting console.log output with event data when pressing Shift + Digit or other key, but nothing in console.

Enviroment (please include the following info):

  • OS: macOS
  • Browser Chrome
  • Version 2.6.4

Additional context
Maybe it's breaking change, but version 2.5.1 works this way.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions