WCAG 2.2: 2.1.2 No Keyboard Trap — The Complete Guide

A11Y Guru on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateAccessibility10 min

About this video

Explains WCAG 2.1.2 No Keyboard Trap, which requires that keyboard focus can always move away from any component, using a theme-picker example shown broken and then fixed. It also covers how to test for traps, inspect the code behind them and confirm the exits work with NVDA.

What you’ll learn

  • Test a page for keyboard traps with a manual Tab-in and Tab-out audit
  • Spot a keydown handler that builds a keyboard trap in source code
  • Confirm a keyboard exit works with the NVDA screen reader