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

Allow autocomplete traversal by holding arrow keys #186

Merged
merged 1 commit into from
May 10, 2011

Conversation

treyhunner
Copy link
Contributor

I'm submitting this for discussion.

This commit migrates up and down arrow listeners to the keypress event binding. Firefox and Opera do not repeat keydown events for these keys so holding down the arrow key traversed through a long list for Chrome but not Firefox and Opera.

This should fix the ticket I submitted on this behavior: #7269.

If representing key presses consistently across multiple browsers is important, the current keydown events should probably be abstracted into a separate binding. The keydown or keypress for each key could then trigger this separate binding as needed.

…ding down arrow keys in Firefox does not traverse list

Use keypress event for listening for arrow keys because Firefox
and Opera do not repeat keydown events for these keys.
@jzaefferer jzaefferer merged commit bdfc6d5 into jquery:master May 10, 2011
@jzaefferer
Copy link
Member

Thanks! Could you also take a stab at http://bugs.jqueryui.com/ticket/6666 ?

@treyhunner
Copy link
Contributor Author

@jzaefferer will do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants