Level AWCAG 2.2

2.1.4 Character Key Shortcuts

Single-character keyboard shortcuts can be turned off, remapped, or limited to focus.


Why it matters

Speech input
Speech recognition software triggers shortcuts every time it dictates a character, breaking operation.
Accidental input
Single-key shortcuts cause unexpected behavior from unintended keystrokes.
Multilingual input
When using an IME, alphabet keys may be processed as shortcuts.
Customization
It is important that users can disable or remap shortcuts to fit their own environment.

Live demo

Single-character shortcuts

The search opens with just the "s" key
Shortcut: S opens search
WCAG 2.1.4 requires single-character shortcuts to provide a way to disable them, a way to remap them, or an option to make them active only when focus is inside the component .

Understanding through personas

Watanabe (52) — Speech input user

Tremors make keyboard input difficult, so I dictate text with speech recognition. Every time I say 'search', the S key opens the search panel and my input disappears.

Checkpoints

References