Favorites

HTML aria-keyshortcuts ARIA Attribute

aria-keyshortcuts
ARIA AttributeThis ARIA attribute is supported by all modern browsers.
Updated 28th November 2026

The aria-keyshortcuts attribute lists the keyboard shortcuts that activate or focus an element, so assistive technology can tell users about them.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

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

<button type="button" id="save" aria-keyshortcuts="Control+S" onclick="document.getElementById('msg').textContent='Saved';">
Save <kbd>Ctrl+S</kbd>
</button>
<p id="msg" aria-live="polite"></p>
<script>
document.addEventListener('keydown', function (e) {
if (e.ctrlKey && e.key === 's') { e.preventDefault(); document.getElementById('save').click(); }
});
</script>

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.

This ARIA attribute is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee