1001Ferramentas
⌨️Validators

WCAG Keyboard Shortcut Checker

Tests a shortcut against WCAG 2.1.4: a single-character key needs a modifier, a remap or an off switch, while function and named keys fall outside the rule.

Conformidade WCAG

Single-key shortcuts and success criterion 2.1.4

A single-key shortcut — pressing S to save, with no modifier — looks like harmless convenience. For someone using speech recognition it is a serious problem: the software types the letters it hears, so saying an ordinary word can fire half a dozen shortcuts. The same applies to people typing by scanning or with motor assistance, where accidental presses are frequent.

Enter the key and answer whether there is a modifier and whether it can be turned off. The key matters because it decides whether the criterion applies at all: it covers shortcuts of one character — letter, number, punctuation, symbol. Function keys and named keys such as Escape and the arrows produce no character and fall outside the scope, which the page states rather than issuing an inappropriate verdict.

When the criterion does apply there are three ways out and one suffices: let the shortcut be turned off, let it be remapped to include a modifier, or make it active only while the relevant component has focus. Requiring a modifier from the start is the simplest solution and the least demanding on the interface. This is criterion 2.1.4, level A of WCAG 2.1 — level A being the floor, not the goal.

Frequently asked questions

Why is speech recognition the central case?
Because the software transcribes what it hears by typing characters. On a page with single-letter shortcuts, a dictated sentence becomes a sequence of commands. That is the scenario that motivated the criterion, and what makes any solution relying on the person remembering not to speak inadequate.
Does a shortcut active only on component focus count?
It does, and it is the third route the criterion allows. A shortcut working only while a text editor has focus does not fire while the person navigates the rest of the page. The caution is that the scope be genuinely narrow — a shortcut active anywhere in the document does not qualify.
Do key sequences, as in Vim, qualify?
The criterion speaks of a single character, so a sequence of two or more falls outside its letter. In practice a sequence starting with a letter still troubles anyone dictating, and offering a way to disable it remains a good idea — even without a formal obligation.

Related Tools