-
-
Notifications
You must be signed in to change notification settings - Fork 222
Open
Description
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.
bikify and daniel-wer
Metadata
Metadata
Assignees
Labels
No labels