Skip to content

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