What is Keyboard trap?
A keyboard trap occurs when a user navigating by keyboard can no longer leave a component (video player, custom widget, iframe) using only the Tab or Escape keys. WCAG 2.1.2 formally prohibits keyboard traps. Only modals may temporarily confine focus, provided it is released when closed.
Related terms
Test your website’s accessibility
106 RGAA criteria analyzed in 5 minutes by our AI.
Run a free audit on scrutia.io