2.1.4 Character Key Shortcuts
Level A Since WCAG 2.1 How it is checked: Robot
In plain language
Single-key shortcuts (e.g. press "s" to search) must be possible to turn off or remap, or work only when that component has focus – speech-input users can easily trigger them by mistake.
Who is affected
- People with motor disabilities using only a keyboard
- Blind people using screen readers
Examples
Fails
Pressing "d" anywhere on the page deletes the selected item.
Passes
Shortcuts use Ctrl/Alt combinations, or there is a setting to turn shortcuts off.
How to fix
- Use shortcuts with a modifier key (Ctrl, Alt).
- Or let users turn off or change the shortcuts.
How to test it yourself
- Check the docs/code for single-character shortcuts; try typing letters while not in a text field.
What WCAG.win checks
WCAG.win checks part of this criterion automatically. The rest still needs a person.
- Robot: Presses single-character keys while no field has focus and reports keys that make the page navigate, scroll, move focus or show content (needs a person to confirm).
W3C documentation: Understanding Success Criterion 2.1.4: Character Key Shortcuts