RESOLVED WORKSFORME 25051
Optgroup in select breaks keyboard navigation.
https://bugs.webkit.org/show_bug.cgi?id=25051
Summary Optgroup in select breaks keyboard navigation.
Alexander Ljungberg
Reported 2009-04-04 16:31:50 PDT
When the <optgroup> tag is used, keyboard navigation does not work in a select drop down if the drop down is opened. Keyboard navigation still works if the drop down is in its closed state. Tested on build 530.5+. The attached test case demonstrates the problem. There are two select drop downs in the page. The first one contains an optgroup, the second one does not. Everything else is equal. To reproduce the problem: Incorrect result: 1. Click the first drop down to bring up the popup with selections. 2. Type "I" on the keyboard. 3. The choice "Zenbe" is highlighted. Correct result: 1. Click the second drop down bring up the popup with selections. 2. Type "I" on the keyboard. 3. The choice "Infinity Internet" is highlighted.
Attachments
Reduced test case to demonstrate select keyboard acceleration problem. (824 bytes, text/html)
2009-04-04 16:36 PDT, Alexander Ljungberg
no flags
Alexander Ljungberg
Comment 1 2009-04-04 16:36:04 PDT
Created attachment 29258 [details] Reduced test case to demonstrate select keyboard acceleration problem. First select box works incorrectly, second works correctly when selecting items through typing on the keyboard with the select popup open.
Anthony Ricaud
Comment 2 2009-04-12 07:20:29 PDT
Confirmed with r42369.
Reid Beels
Comment 3 2011-02-15 15:07:46 PST
Confirmed in r78528
Alexander Kahn
Comment 4 2011-06-07 08:15:59 PDT
I think fixing this would be a great improvement. This trips me up a lot.
Robin Stocker
Comment 5 2011-06-25 13:33:02 PDT
Confirmed in Chrome 14.0.797.0 dev. Firefox behaves correctly by the way (maybe that is a motivation).
bugzilla
Comment 6 2012-01-19 01:25:32 PST
This is really annoying. Even Internet Explorer (checked with version 9) handles this correctly. That's quite embarrassing, huh? Please fix this soon! Thanks a lot!
Alexey Proskuryakov
Comment 7 2012-06-21 10:07:20 PDT
*** Bug 89644 has been marked as a duplicate of this bug. ***
Peter Ostrander
Comment 8 2013-02-13 12:33:08 PST
Experiencing this same problem across Webkit browsers. I've created a jsfiddle that displays the issue. http://jsfiddle.net/peterostrander/dtt9L/
Peter Ostrander
Comment 9 2013-02-13 13:31:48 PST
It also appears that this only occurs when an optgroup has nested options inside it. If optgroups are present in the select, but none of them contain nested options, then keyboard navigation works correctly.
fr0d0z
Comment 10 2013-11-21 17:19:58 PST
A workaround using jQuery can be found here: http://stackoverflow.com/questions/8829451/bug-in-select-optgroup-using-keyboard-accelerators-in-webkit Would love to see a fix for this though :-)
Benjamin Poulain
Comment 11 2014-03-04 22:04:30 PST
It seems to work now. I just tried with WebKit trunk on Mavericks and I can navigate when the popup is up.
Alexander Ljungberg
Comment 12 2014-03-05 02:05:29 PST
I can confirm this is resolved, even in vanilla Safari 7.0.2.
Note You need to log in before you can comment on or make changes to this bug.