Bug 159215 - AX: ARIA 1.1 @aria-keyshortcuts
Summary: AX: ARIA 1.1 @aria-keyshortcuts
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-06-28 10:24 PDT by Nan Wang
Modified: 2022-07-19 16:26 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nan Wang 2016-06-28 10:24:11 PDT
Add support for ARIA 1.1 'aria-keyshortcuts'.
https://rawgit.com/w3c/aria/master/aria/aria.html#aria-keyshortcuts

Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.
Comment 1 Radar WebKit Bug Importer 2016-06-28 10:24:59 PDT
<rdar://problem/27058098>
Comment 2 James Craig 2016-06-28 22:19:15 PDT
Please don't use "ARIA" in the property name.
Comment 3 James Craig 2016-06-28 22:47:25 PDT
I've already pointed out that this Web API will be difficult to do well across platforms and locales. Many keyboards have totally different layouts than US English, with some characters requiring different modifier keys to access. For example, you have to hold Shift to access the number keys on french keyboards, so if you wanted a primary modifier + "8" it gets even more complicated:

Authors wishing to localize would need to know all these rules:

aria-shortcuts="Control+8" (US PC)
aria-shortcuts="Meta+8" (US Mac: e.g. Command+8)
aria-shortcuts="Meta+Shift+!" (French Mac; not a typo, 8 is Shift+! in France)
aria-shortcuts="Control+Shift+_" (French PC; again, not a typo, 8 is typed different on French PCs and Macs)

"Shift+1" becomes even more ambiguous in French ("What is shifted may never shift."), and there is no Web API to figure out which keyboard a user has.
Comment 4 Aaron Leventhal 2017-12-07 10:29:52 PST
Whatever property is chosen, we'd like to implement it in Chrome as well. 

Does it make sense to use the property outside of web content as well? For example, exposing "⌘L" for the address bar.
Comment 5 James Craig 2019-09-26 12:00:55 PDT
Better link than the rawgit URL above:
https://www.w3.org/TR/wai-aria-1.1/#aria-keyshortcuts
Comment 6 Emily Meng 2022-07-19 16:26:47 PDT
Hello, is there any update on this request? I would also like to see support for this added.