Character Key Shortcuts
If your site fires an action from a single printable character, one of three things has to be true. The user can turn the shortcut off. Or they can remap it to include a non-printable key such as Ctrl or Alt. Or the shortcut only works while the component it belongs to has focus. Printable is the word that sets the scope, and it reaches further than letters. Punctuation, numbers and symbols all count, so the near-universal question mark for help and slash for search sit inside this rule, and so do chained shortcuts like pressing G and then A. How many physical keys a person presses is beside the point. Shift and the slash key together produce a question mark, and a shortcut built on that question mark still needs one of the three answers.
Why it matters
Speech users work in one mode, dictating and commanding at once, because switching modes for every command is too slow to live with. So the words they say arrive at the page as a stream of individual characters. W3C's own example is a speech user whose mail app uses k, y and m, and whose colleague walks past the microphone and says 'Hey Kim'. The y archives the message. The k moves down a conversation. The m mutes a thread. Three actions nobody asked for, out of two words nobody typed. Compare that with dictation going astray in a plain text field, which leaves some stray text the user can see and delete. A fired shortcut leaves nothing on screen to undo.
Who this rule protects
This affects speech-input users, whose dictation is a stream of the same characters a shortcut listens for, keyboard users with a tremor who brush a key and lose their place in a long page, and people with some cognitive disabilities, who benefit from remapping so the same shortcut does the same thing across every application they use.
How to check it yourself
- List every shortcut the site or its embedded players register, including the ones documented only in a help panel. Include punctuation, numbers and symbols, not just letters.
- Include chained shortcuts, meaning any pair like G then A pressed in quick succession. A sequence of character keys is inside the rule too.
- Open the settings and look for one of the three answers. A switch that turns shortcuts off, a remapping screen, or shortcuts that already fire only while their own component has focus.
- Check that remapping actually adds a non-printable key such as Ctrl or Alt. Moving a shortcut from S to Q moves the problem, it does not fix it.
- Click into a text field and type the shortcut characters. If an action fires while you are typing, the shortcut is global, and a global shortcut needs the off switch or the remap.
Failures we see most often
- A media player where k pauses and f goes fullscreen everywhere on the page, including while the user is typing a comment, and settings offer neither a way to switch them off nor a way to remap them.
- A mail-style app that archives the open message on e, with no off switch and no remapping either. One of the two would have been enough.
- A help panel opened by pressing ? and a search box opened by pressing /, neither of which can be switched off or remapped, on a site whose team believed the rule covered letters only.
- A remapping screen that only moves a shortcut from one letter to another. A remap has to be able to add a non-printable key, so this does not satisfy the remap branch, and with no off switch beside it the shortcut fails.
Who this one is for
Read from this rule's own note above, so the grouping and the note cannot disagree.
- Motor and keyboard-onlypeople who cannot use a mouse, or cannot use one precisely
- Voice controlpeople who operate the page by speaking to it
- Cognitive and learningpeople for whom the difficulty is understanding, remembering, or staying with it
How this one is tested
We list 1 ACT rule against 2.1.4. Each one defines exactly what a checker looks at, which is how automated tools decide what to flag. Each one also checks a slice, so passing every rule here is not the same as meeting the criterion, and a rule can be proposed rather than approved or need a person to finish it. The note beside each says which.
- No keyboard shortcut uses only printable charactersA tool finds candidates, you decide
How to fix it
- Require a modifier key on any shortcut that works page-wide. Ctrl and Alt are non-printable, so a combination that includes one sits outside the rule entirely and needs no off switch.
- Or scope the shortcut to its component, so it only fires while that component has focus. That is how a listbox gets away with jumping to the letter you type.
- Or ship a switch in preferences that turns character shortcuts off. Gmail and WordPress both do it, so this is a shipped pattern rather than a theory.
- Offer remapping even where you already offer an off switch. People with some cognitive disabilities can then set the same shortcut for the same action everywhere they work, which is worth more to them than any single default.
Step-by-step fix guides (2)
Passes vs. fails
Passes
The same app fires nothing without Alt held down, and a switch in settings turns character shortcuts off completely for anyone who wants them gone.
Fails
A colleague says 'Hey Kim' near the microphone. The y archives the open message, the k moves down a conversation, and the m mutes the thread, none of it visible and none of it undoable.
In audits and lawsuits
Most sites pass this one by never building a shortcut, and the sites that do build them are web apps and media players where the failure is loud. Two false positives come up every time. A select element or a listbox that jumps when you type a letter is outside the rule, because typeahead only works while the component has focus, which is the third way to pass already satisfied. Access keys are outside it too, since browsers generally fire those with a modifier held down. Gmail and WordPress both ship character shortcuts with a way to turn them off, which is the answer to anyone who says the fix is impractical. And speech users can already say 'press Control Foxtrot', so adding a modifier costs them nothing at all.