Open Bug 1230387 Opened 5 years ago Updated 2 years ago

Disabled/hidden/no-display element's access key blocks identical access key


(Core :: DOM: UI Events & Focus Handling, defect)

42 Branch
Not set





(Reporter: mozilla, Unassigned)



(1 file)

Attached file bugReport.html
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39
Build ID: 20151103191810

Steps to reproduce:

Please see attached bugReport.html

Load this file. Read content and follow the instructions:
Click Ctrl+Shift+A
Comment out the line:
//disabled.accessKey = "A";
Again, Ctrl+Shift+A

Actual results:

In first case (unmodified file), nothing happens.
When a line is commented out, alert shows 'Second button: working!'

Expected results:

The button click event should be invoked in all cases.

First button is disabled, hidden or collapsed, and not even displayed: = "none";

When an access key ('A') is set, the same access key should operate on second (visible enabled) button -- because the button "disabled" does not use it at the moment.
Component: Untriaged → Keyboard: Navigation
Product: Firefox → Core
Component: Keyboard: Navigation → User events and focus handling
You need to log in before you can comment on or make changes to this bug.