You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The condition activeTargetKeys.some(k => keyCombo.keyNames.includes(k)) which needs to be fulfilled to trigger a bound handler is never true for shortcuts registered on secondary key symbols (or really any key name bound using the bindMacro function).
To illustrate with an example:
After registering keyboardJS.bind('!', console.log.bind(console, '!')); and pressing Shift + 1 to type the !, activeTargetKeys is ["1", "one"] but keyCombo.keyNames is ["!"].
Describe the bug
Listening secondary key symbols (!@#$%^&*()_+?) not firing event.
However binding primary key together with secondary will work.
Example code
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):
Additional context
Maybe it's breaking change, but version 2.5.1 works this way.
The text was updated successfully, but these errors were encountered: