-
Notifications
You must be signed in to change notification settings - Fork 152
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
Key commands should be matched exactly #216
Comments
Good catch, the culprit is in return (modifier && key.hasModifier(modifier)) || (!modifier && !key.hasAnyModifier()); |
I think maybe a bitmask for the key modifiers would simplify this? I may take a stab at this later today. |
bantic
added a commit
that referenced
this issue
Nov 9, 2015
* Add `modiferMask` property to key and key commands * Changes buildKeyCommand to allow multiple modifiers, i.e. `str: 'META+SHIFT+K' * Add additional assertions to ensure key commands are valid * Deprecate using a `modifier` property when creating a key command fixes #216
bantic
added a commit
that referenced
this issue
Nov 9, 2015
* Add `modiferMask` property to key and key commands * Changes buildKeyCommand to allow multiple modifiers, i.e. `str: 'META+SHIFT+K' * Add additional assertions to ensure key commands are valid * Deprecate using a `modifier` property when creating a key command fixes #216
bantic
added a commit
that referenced
this issue
Nov 9, 2015
* Add `modiferMask` property to key and key commands * Changes buildKeyCommand to allow multiple modifiers, i.e. `str: 'META+SHIFT+K' * Add additional assertions to ensure key commands are valid * Deprecate using a `modifier` property when creating a key command fixes #216
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently if you press opt-cmd-B or ctrl-cmd-B it toggles bold, even though the key command is configured for just META+B or CTRL+B, but not both together.
The text was updated successfully, but these errors were encountered: