Character Key Shortcuts (2.1.4)
If a keyboard shortcut uses only a single printable character (letter, number, punctuation, or symbol), the user must be able to turn it off, remap it, or it must only be active when the relevant component has focus.
WCAG Reference
Applies to: WCAG 2.1, WCAG 2.2 Introduced in: WCAG 2.1 | Level: A | Read the official specification →
What this rule checks
The scanner identifies keyboard shortcuts bound to single character keys that are active globally on the page rather than scoped to a focused component.
Why it matters
Voice-input users dictate text that produces character keystrokes. If a page binds actions to single letters (e.g., pressing "s" to search), voice dictation can accidentally trigger those shortcuts, causing unexpected behavior.
Common failure patterns
- global shortcuts like "s" for search, "j/k" for navigation, or "?" for help
- single-character shortcuts that remain active even when focus is inside a text field
- shortcuts documented only in a help modal, with no way to disable or remap them
Remediation guidance
- require a modifier key (Ctrl, Alt, Shift) for global shortcuts
- scope single-character shortcuts so they only work when the relevant component is focused
- provide a settings UI to disable or remap character shortcuts
- if modifier keys are not feasible, ensure the shortcut deactivates when a text input has focus
