WCAG 2.1.2 No Keyboard Trap
WCAG 2.1 Success Criterion 2.1.2 requires users who move keyboard focus into a component to be able to move it away with a keyboard interface. When a component uses an unfamiliar exit command, users also need instructions for that command.
OpenKeyNav mode exits
Escapeleaves Click Mode and Move Mode.Qis the default alternate exit for temporary modes.Alt + Rreliably exits Structural Navigation.Shift + Oturns the OpenKeyNav command layer off.
Applications can configure several of these keys. Keep the resulting exits available, documented, and free from conflicts with the host application and supported assistive technologies.
Verification checklist
- Enter and exit each OpenKeyNav mode from every target type and application state.
- Confirm that exiting removes labels, mode indicators, and temporary movement state.
- Confirm that focus remains visible and useful after exit.
- Test dialogs, composite widgets, editors, embedded content, and scrollable regions for traps created by the host application.
- Place instructions before any component that requires an unfamiliar exit command.
- Repeat the tests with screen readers, speech input, switch interfaces, and supported browsers.
OpenKeyNav provides exits from its own modes. Complete-page evaluation establishes that every host-application component also satisfies the criterion.