WCAG 2.1.4 — Character Key Shortcuts
Your website has keyboard shortcuts that interfere with assistive technology like voice control software. Users who rely on speech recognition may accidentally trigger website functions when trying to dictate text. Under ADA Title II requirements, these shortcuts must be configurable or removable.
Who Is Affected
Users of voice control software (like Dragon NaturallySpeaking), users with mobility impairments who rely on alternative keyboards, and users with motor disabilities who may accidentally press single keys.
What This Means
Single-character keyboard shortcuts (like pressing "s" to search) can conflict with assistive technology. When someone using voice control software says a word containing that letter, it may accidentally trigger the website's shortcut instead of typing the intended text.
For example, if your site uses the "s" key as a search shortcut, a voice control user saying "search" or "submit" might inadvertently activate the search function multiple times instead of dictating those words.
The solution is to either use multi-key combinations (like Ctrl+S) or provide a way for users to turn off single-key shortcuts.
Fix: CMS / Theme
Review your theme and any installed plugins for single-character keyboard shortcuts:
Joomla
- Go to Extensions → Plugins and search for "keyboard" or "shortcut"
- Check the configuration of any keyboard-related plugins
- Look for options to:
- Require modifier keys (Ctrl, Alt, Shift) with single characters
- Disable shortcuts entirely
- Allow users to customize shortcuts
- In your template's JavaScript files, search for
keydown,keypress, orkeyupevent listeners - Modify any single-character shortcuts to require modifier keys
WordPress
- Go to Plugins → Installed Plugins and review any that mention "keyboard," "shortcut," or "hotkey"
- Check plugin settings for shortcut configuration options
- Common plugins with shortcuts: search plugins, accessibility plugins, admin enhancement tools
- In your theme's functions.php or JavaScript files, look for keyboard event handlers
- Update single-character shortcuts to use combinations like Ctrl+key
Code Example:
// Instead of this:
document.addEventListener('keydown', function(e) {
if (e.key === 's') { // Single key - problematic
openSearch();
}
});
// Use this:
document.addEventListener('keydown', function(e) {
if (e.ctrlKey && e.key === 's') { // Ctrl+S - accessible
e.preventDefault();
openSearch();
}
});
Fix: Content Editor
Most content editors don't directly create keyboard shortcuts, but you may encounter them in:
- Embedded widgets or third-party tools — Check if any embedded content (maps, forms, media players) uses single-key shortcuts
- Custom HTML/JavaScript blocks — Review any custom code blocks for keyboard event handlers
- Plugin shortcodes — Some plugins add keyboard functionality through shortcodes
If you find single-character shortcuts in your content, either:
- Remove the problematic code
- Contact your web developer to modify it to use key combinations
- Replace with an accessible alternative
Standard Reference
WCAG 2.1 Success Criterion 2.1.4 — Character Key Shortcuts, Level A
If a keyboard shortcut is implemented in content using only letter (including upper- and lower-case letters), punctuation, number, or symbol characters, then at least one of the following is true:
-
Turn off: A mechanism is available to turn the shortcut off
-
Remap: A mechanism is available to remap the shortcut to use one or more non-printable keyboard characters (e.g. Ctrl, Alt, etc)
-
Active only on focus: The keyboard shortcut for a user interface component is only active when that component has focus
Check if your government website has this issue
OctoComply scans your website and documents for WCAG 2.1 AA violations. The free tier covers up to 10 pages.
Run a Free Scan