whatwg / html

HTML Standard
https://html.spec.whatwg.org/multipage/
Other
8.16k stars 2.69k forks source link

Accesskey intro examples (editorial) #4812

Open r12a opened 5 years ago

r12a commented 5 years ago

6.5.1 Introduction https://html.spec.whatwg.org/multipage/interaction.html#introduction-9

Depending on the outcome of https://github.com/whatwg/html/issues/4799, i think it may be better to use 'c' (lower case) as the shortcut key in the first example, to keep things simple for the reader. (That also helps, because Firefox on Windows currently requires Alt+Shift keys to be pressed at the same time as the accelerator key.)

In the second example it says:

For example, if the key combination is the Control key, the Shift key, and the letter C, a Windows browser might display "Ctrl+Shift+C", whereas a Mac browser might display "^⇧C", ...

and then

Similarly, if the key combination is the Alt key and the Escape key, Windows might use "Alt+Esc", Mac might use "⌥⎋" ...

Could someone clarify where these modifier key ideas come from, and why we don't cite the conventions that are currently in use for major browsers, ie. Alt+c for Chrome & Edge, and Alt+Shift+c for Firefox on Windows; and Ctrl+Alt+c for current versions of Chrome, Safari & Firefox on the Mac. See https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey?

annevk commented 5 years ago

cc @whatwg/a11y