From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/html/global_attributes%2Faccesskey.html | 74 +++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 devdocs/html/global_attributes%2Faccesskey.html (limited to 'devdocs/html/global_attributes%2Faccesskey.html') diff --git a/devdocs/html/global_attributes%2Faccesskey.html b/devdocs/html/global_attributes%2Faccesskey.html new file mode 100644 index 00000000..3abfc940 --- /dev/null +++ b/devdocs/html/global_attributes%2Faccesskey.html @@ -0,0 +1,74 @@ +

accesskey

The accesskey global attribute provides a hint for generating a keyboard shortcut for the current element. The attribute value must consist of a single printable character (which includes accented and other characters that can be generated by the keyboard).

+

Try it

+
+

Note: In the WHATWG spec, it says you can specify multiple space-separated characters, and the browser will use the first one it supports. However, this does not work in most browsers. IE/Edge uses the first one it supports without problems, provided there are no conflicts with other commands.

The way to activate the accesskey depends on the browser and its platform:

Windows Linux Mac
Firefox +Alt + Shift + key +
  • Firefox 57+: Control + Option + key or Control + Alt + key
  • Firefox 14-56: Control + Alt + key
  • Firefox 13 or older: Control + key
Edge +Alt + key + Control + Option + key
or Control + Option + Shift + key
n/a
Google Chrome +Control + Option + key +
Safari n/a +Control + Option + key +
Opera 15+ +Alt + key + +Control + Alt + key +
Opera 12 Shift + Esc opens a list of available accesskeys. Choose an item from the list by pressing the key.
+
+

Accessibility concerns

+
+

In addition to poor browser support, there are numerous concerns with the accesskey attribute:

Because of these issues, it is generally advised not to use accesskeys for most general-purpose websites and web apps.

+
+

Specifications

+
+ + +
Specification
HTML Standard
# the-accesskey-attribute
+

Browser compatibility

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariWebView AndroidChrome AndroidFirefox for AndroidOpera AndroidSafari on IOSSamsung Internet
accesskey1121Yes15≤44.418414≤3.21.0
+

See also

+
+

+ © 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
+ https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey +

+
-- cgit v1.2.3