HTML aria-keyshortcuts ARIA Attribute
The aria-keyshortcuts attribute lists the keyboard shortcuts that activate or focus an element, so assistive technology can tell users about them.
Description
The aria-keyshortcuts attribute documents the keyboard shortcuts that the page provides for an element. The value lists one or more key combinations separated by spaces, with the keys in each one joined by a plus sign, such as Control+S or Alt+Shift+P. Use standard key names from the UI Events specification, with modifier keys first.
The attribute only exposes the information: you still have to implement the shortcut in JavaScript. Show it visibly too, for example in a tooltip or menu, so all users can discover it.
Choose shortcuts carefully. Single-letter shortcuts and combinations already used by the browser, operating system or screen readers can conflict with what users rely on, and WCAG requires that single-key shortcuts can be turned off or remapped.
Properties
- Type
- Global
- Value
- string
- Default
- None
- Used with
- All elements (global attribute)
Syntax
<element aria-keyshortcuts="Control+S">
Values
- shortcut listOne or more key combinations separated by spaces, with keys in a combination joined by "+".
Example
Browser Support
The following information will show you the current browser support for the aria-keyshortcuts ARIA attribute. Hover over a browser icon to see the version that first introduced support for this ARIA attribute.
Desktop





Tablets & Mobile





