Section 2.1: Keyboard Accessibility
This section of WCAG 2.1 ensures that all functionality on a webpage can be accessed and operated using only a keyboard, without requiring a mouse or other pointing device.
2.1.1 Keyboard
All content and functionality must be operable through a keyboard interface, without requiring specific timing for individual keystrokes.
- Example: Below is a form that can be navigated and filled out using only the keyboard:
2.1.2 No Keyboard Trap
Users should be able to navigate away from any component using the keyboard without becoming "trapped" on it.
- Example: Below is an example of a modal dialog box that can be opened and closed using the keyboard:
2.1.4 Character Key Shortcuts
Single-character key shortcuts (like using just "A" or "S") should either have a mechanism to turn them off, remap them, or ensure they only work when a specific component is focused.
- Example: Below is an example where pressing "Alt + K" will trigger an action: