Can we count your visit?

Our analytics service records the pages you view, so we can see which ones are useful. It saves a random ID in your browser, and we never use it for advertising. Read our privacy policy.

Keyboard trap

A part of a page that keyboard focus can enter but not leave, so someone using a keyboard is stuck.

Also called
keyboard traps

A keyboard trap is a part of a page that focus can enter but cannot leave using a keyboard. For example, a person reaches an embedded player but cannot move back to the surrounding page.

WCAG's No Keyboard Trap requirement is Level A. A modal dialog can keep focus inside while it is open if there is an accessible way to dismiss it. Escape is a common method; the requirement allows other keyboard methods, with instructions when needed. After closing a dialog, focus needs to return to a logical place, usually the control that opened it.

Source

World Wide Web Consortium (W3C). Checked .

Get help with every step.

We can work with organizations of every size and industry, from a startup serving its first customers to a bank. We find where you stand, help your team fix what matters, and keep checking as your product changes. That work is evidence of your effort, not a legal guarantee.