# WCAG 2.2 – 2.1.2 No Keyboard Trap

- Level: A
- Principle: 2 Operable
- Guideline: 2.1 Keyboard Accessible
- Introduced in: WCAG 2.0

## What the rule requires

Keyboard focus never gets stuck. Anyone who can tab into an area can also leave it with the keyboard.

## How to get it right

Test dialogs, video players and embedded widgets: can you leave with Tab or Esc? A dialog holds focus only while open and closes with Esc.

## Who benefits

- People with motor disabilities
- Blind people

## Sources

- [This rule on wcag.dehl.net](https://wcag.dehl.net/en/wcag/2-1-2/)
- [Interactive demo](https://wcag.dehl.net/en/demos/#keyboard)
- [Official W3C explanation](https://www.w3.org/WAI/WCAG22/Understanding/no-keyboard-trap)
- [Techniques (WCAG Quick Reference)](https://www.w3.org/WAI/WCAG22/quickref/#no-keyboard-trap)

_Plain-language explanation. Only the original W3C text is normative._
