Skip to content
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

Fix keyboard unbindings. #757

Merged
merged 1 commit into from
Jan 11, 2018
Merged

Fix keyboard unbindings. #757

merged 1 commit into from
Jan 11, 2018

Conversation

manthey
Copy link
Contributor

@manthey manthey commented Jan 11, 2018

There was a bug when unbinding key handlers. Mousetrap always expects an array of key sequences, and we were passing one at a time.

Also, jQuery's toggleClass treats 0 as true, so ensure that we always use a boolean.

There was a bug when unbinding key handlers.  Mousetrap always expects
an array of key sequences, and we were passing one at a time.

Also, jQuery's toggleClass treats 0 as true, so ensure that we always
use a boolean.
@manthey
Copy link
Contributor Author

manthey commented Jan 11, 2018

@matthewma7 This should fix the issues you were seeing.

Copy link

@matthewma7 matthewma7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manthey Yes, I just tried this branch out. It fixed my issues. Thank you 👍

@manthey manthey merged commit 520b41d into master Jan 11, 2018
@manthey manthey deleted the fix-keyboard-unbindings branch January 11, 2018 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants