Provide a way to adjust the activation of keyboard shortcuts.
What you need to know
- This success criterion aims to prevent accidental keyboard triggers by providing a way to turn off keyboard shortcuts entirely, including a second key in the action, or limiting the shortcut to only when a specific component is activated.
- If you have a keyboard shortcut it needs to meet three requirements:
- The shortcut can be turned off.
- There’s a way to change the shortcut to include one or more non-printable keyboard keys, for example Ctrl or Alt.
- The keyboard shortcut for a user interface component is only active when that component has focus.
What you need to do
If you have a keyboard shortcut on your website, then do any or all of the following: Provide a way to turn it off; Provide a way to change the shortcut to include Ctrl or Alt, and/or; Make the keyboard shortcut only available when a specific component is activated
Read the full explanation of success criterion 2.1.4 on W3.org.
Read “Support Keyboard Interaction” from Harvard University – Digital Accessibility for more information about this success criterion.