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

Search breaks with jquery.hotkeys plugin #1634

Closed
mortenbock opened this issue Oct 31, 2013 · 3 comments
Closed

Search breaks with jquery.hotkeys plugin #1634

mortenbock opened this issue Oct 31, 2013 · 3 comments

Comments

@mortenbock
Copy link

It might be jquery.hotkeys that's to blame, but the search function seems to break when both are installed.
https://github.com/tzuryby/jquery.hotkeys

The hotkeys plugin seems to intercept all keypress events, and is not able to correctly propagate the event back to Chosen.

If it cannot be fixed, maybe this issue can help others figure out why it's not working.

@stof
Copy link
Collaborator

stof commented Oct 31, 2013

I think it is an issue with the jquery.hotkeys plugin being too aggressive in the way it modifies the event binding. It seems to break all plugins using event namespaces when binding their listener, by assuming that thiese namespaces are alays used to restrict the keys being listened to.
You should report it back to the plugin maintainer

@tjschuck
Copy link
Member

Thanks for reporting this to let others know, @mortenbock. Closing the issue, though, per @stof's recommendation that this is probably an issue with jquery.hotkeys. We'll reopen if you come back with more information to the contrary.

@bobbymarko
Copy link

I had this same issue and switched to mousetrap.js instead of hotkeys and was able to get the same functionality without the chosen conflict: http://craig.is/killing/mice

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

No branches or pull requests

4 participants