Example 1 — Get and Set ariaKeyShortcuts (MDN)
Read the documented shortcut, then update it.
const el = document.getElementById("skip-link");
console.log(el.ariaKeyShortcuts); // "Alt+Shift+A"
el.ariaKeyShortcuts = "Alt+Shift+M";
console.log(el.ariaKeyShortcuts); // "Alt+Shift+M" How It Works
- Select the control that has a shortcut (MDN uses a skip link).
- Read
ariaKeyShortcuts. Starts as"Alt+Shift+A". - Assign a new string. Reflects to
aria-keyshortcuts. - Update your real handler to match the new shortcut.

