Closed Bug 1467381 Opened 3 years ago Closed 3 years ago
Keyboard shortcut empty for element with accesskey
STR: 1. Open this URL: data:text/html,<a href="foo" accesskey="f">foo</a> 2. Right click the link and select "Inspect Accessibility Properties". 3. Look at the keyboardShortcut property. Actual: "" Expected: "alt+shift+f" (or similar) I think this occurs because Gecko a11y exposes two key bindings: Accessible::AccessKey and Accessible::KeyboardShortcut. The former is used for accesskey, where the latter is used for global shortcuts defined by XUL menu items, etc. IMO, for the purposes of the inspector's keyboardShortcut property, we should do what the Windows implementation does: try AccessKey first, and if that's empty, use KeyboardShortcut.
Assignee: nobody → yzenevich
Status: NEW → ASSIGNED
Attachment #8985422 - Flags: review?(pbrosset)
Attachment #8985422 - Flags: review?(pbrosset) → review+
Pushed by firstname.lastname@example.org: https://hg.mozilla.org/integration/mozilla-inbound/rev/45a968a577b7 check Accessible::AccessKey and Accessible::KeyboardShortcut when filling up keyboardShortcut for accessible actor. r=pbro
You need to log in before you can comment on or make changes to this bug.