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

Unbind wasn't working for multiple key combos #97

Merged
merged 1 commit into from
Sep 4, 2013

Conversation

nwinkler
Copy link
Contributor

@nwinkler nwinkler commented Sep 4, 2013

The documentation shows that you should be able to call unbind with multiple shortcuts at the same time, just like in assignKey: unbind('a, shift+b, ctrl+c'). This was not working, since the unbindKey function simply didn't split the provided key parameter by comma (using the getKeys() function).

I've fixed this and also updated the unit tests. Basically, I've put a for loop around the current functionality to call it for each key combo that was provided.

madrobby added a commit that referenced this pull request Sep 4, 2013
Unbind wasn't working for multiple key combos
@madrobby madrobby merged commit cef3f4d into madrobby:master Sep 4, 2013
@nwinkler nwinkler deleted the unbind-multiple branch September 4, 2013 13:29
@nwinkler
Copy link
Contributor Author

nwinkler commented Sep 4, 2013

Thanks!

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