Skip to main content
WCAG success criterion · Operable

2.1.2 No Keyboard Trap

Guideline 2.1 Keyboard Accessible. Level A, part of WCAG 2.0 and every later version.

ADA compliance guide

What this criterion requires

If keyboard focus can move into a component, it must be able to move out again using standard keys (Tab, arrows, Escape). If a non-standard exit is needed, the user must be told how.

Who it helps

Keyboard and screen reader users, for whom a trap ends the session.

Example: fails vs passes

Fails
A modal you can Tab into, but Tab cycles inside forever and Escape does nothing.
Passes
The dialog closes on Escape and on Close, and returns focus to the button that opened it.

Third-party embeds - chat widgets, players - are the most common traps. Test them.

How to meet and fix it

Common failures auditors find

Automated scanning catches a share of these instantly - run a free check - and a manual audit covers the judgement calls a tool cannot make.

Sources

Last updated . Reviewed by the EqualWeb accessibility team.

Does your site pass 2.1.2?

Run a free automated check now, or have certified IAAP/CPWA auditors test every criterion and document the result.

Book a meeting Start Free Trial