accesskey
make an element focusable?There is a heading, with accesskey="я"
.
A shortcut based on "я" plus modifiers should fire a click on the heading, which should open a new tab or window with the github page for this test. Ideally, but not required by spec, it should be possible to "tab" to the heading.
Value of the accessKey DOM attribute:
This test is on github to enable Pull Requests…
accessKeyLabel
DOM attribute (removed from HTML 5.1)accessKey
The accesskey
attribute was first defined in HTML 4. An "improved" version was redefined in HTML5, but due to lack of implementation this was reverted in HTML 5.1.
The я key is standard on cyrillic keyboards. A browser that implements either the HTML4 or HTML5 version of accesskey
will use it as the base of a shortcut. According to the specification, the heading must be activated.
Because the я key is not available on many common keyboards, it would be a Good Idea™ if browsers made it possible to focus the element. Otherwise for most keyboard users there is no way to activate the functionality, especially since browsers currently fail to make accesskey-activated commands discoverable.