Open Bug 1125813 Opened 6 years ago Updated 6 years ago
Accesskey ignored if first matching input field's style is display:none — focus does not go to the subsequent fields with that key
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 Build ID: 20150120155007 Steps to reproduce: Fiddle is available at http://jsfiddle.net/gjsjohnmurray/k64t4fs1/ Define two or more <input> elements with the same accesskey attribute value, e.g. "Z". Style the first element as "display:none;" Actual results: Entering the accesskey combination (e.g. Shift+Alt+Z) does not move focus anywhere. Expected results: The accesskey combination should skip the hidden first field and put focus onto the second field (the first one that is visible).
firefox-18.104.22.168 always goes to the last field, but maybe it did not support Alt+Shift+<accesskey> yet, per bug 136041 comment 14. WFM with 2008-09-18-02-mozilla-central-firefox-3.1b1pre.en-US.linux-x86_64 Reproduced with 2015-02-01-03-02-09-mozilla-central-firefox-38.0a1.ru.linux-x86_64. If the last field is focused, the accesskey does nothing visible. I guess the hidden field's accesskey fires, but focus does not move, so the next key is again of the hidden field.
g 2011-04-09-03-mozilla-central-firefox-4.2a1pre.en-US.linux-i686 g 2011-04-11-03-mozilla-central-firefox-4.2a1pre.en-US.linux-i686 09b605eb3e0d b 2011-04-12-03-mozilla-central-firefox-4.2a1pre.en-US.linux-i686 a174b86200d6 b 2011-04-13-09-mozilla-central-firefox-6.0a1.en-US.linux-i686 https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=09b605eb3e0d&tochange=a174b86200d6 bug 583514?
Status: UNCONFIRMED → NEW
QA Whiteboard: [bugday-20150102]
Component: Untriaged → Layout: Form Controls
Ever confirmed: true
OS: Windows 8.1 → All
Product: Firefox → Core
Summary: Accesskey ignored if first matching field style is display:none → Accesskey ignored if first matching input field's style is display:none
Summary: Accesskey ignored if first matching input field's style is display:none → Accesskey ignored if first matching input field's style is display:none — focus does not go to the subsequent fields with that key.
You need to log in before you can comment on or make changes to this bug.