ARIA States & Properties

aria-keyshortcuts

Exposes implemented keyboard shortcuts to assistive technologies. It does not register a shortcut. Use standardized key names, avoid overriding important browser and AT commands, and provide discoverable alternatives. Value type: string. Accepted values: space-separated key combinations, modifiers joined by +. Default or omitted behavior: none. Applicable context: global; test shortcut conflicts. Use only where allowed for the element’s implicit or explicit role. ARIA describes accessibility semantics; it does not automatically implement the associated behavior. Test with the relevant browser and assistive technology.

Formal Syntax & Structure

html syntaxhtml
aria-keyshortcuts="Alt+S"

Parameters & Attributes

NameTypeDescription
aria-keyshortcutsstringAccepted values: space-separated key combinations, modifiers joined by +. Default or omitted behavior: none. Context: global; test shortcut conflicts. Requiredness depends on the role.

Working Example

Example Snippethtml
<button id="save" aria-keyshortcuts="Alt+S">Save (Alt+S)</button><p role="status" id="msg"></p><script>  const s=document.getElementById('save');s.onclick=()=>document.getElementById('msg').textContent='Saved';document.addEventListener('keydown',e=>{if(e.altKey&&e.key.toLowerCase()==='s'){e.preventDefault();s.click()}})</script>
HTML Reference