Marcelo Paiva

All criteriaPresent as slides

A smiling woman in a yellow raincoat crouches at a round green door in a hedge, a large brass key in its lock.Meant to show: A woman with a motor impairment who works by keyboard

Success criterion 2.1.2

No Keyboard Trap

Keyboard focus should never get stuck on one element; it should always be possible to move it away using only the keyboard.

  • Level A
  • Principle 2: Operable
  • Guideline 2.1: Keyboard Accessible

In a user’s words

“It's like I was stuck in a digital maze, and you handed me the escape key!”

Who this helps: Motor Impairments

What each role can do

Product manager
Make sure keyboard users can navigate through all elements easily.
Designer
Indicate keyboard focus clearly and avoid elements that could trap keyboard navigation.
Developer
Make sure to provide ways to exit menus or modals via keyboard commands.
Tester
Run comprehensive tests to make sure there are no keyboard traps.

Once it is fixed

“Thank you for giving me back control of my keyboard. You're a real lifesaver!”

The quotes are written to illustrate the criterion. They are not testimonials from real people. For the official wording, find 2.1.2 in the W3C quick reference for WCAG 2.2 (opens in a new tab).

Or press the left arrow and the right arrow.

A success criterion

This is one page of a phrase book. It takes one success criterion and tells it from the side of the person it helps.

From top to bottom

  1. At the top, the site header: my name, which goes home, then links to Writing, Work, Signal, Tools and Resume, then Settings, where you choose the drawings, light or dark, and movement.
  2. Links back to all the criteria, and to present this one as slides.
  3. A drawing, the criterion’s number and name, what it requires in one sentence, and its level.
  4. In a user’s words: a quote from the person who meets the barrier.
  5. What each role can do: one task each for the product manager, the designer, the developer and the tester.
  6. Once it is fixed: the same person again.
  7. Share this with your team: post to LinkedIn, download the slides as a PDF, or copy a link.
  8. Some criteria then have a t-shirt to order.
  9. Links to the previous and next criterion. The left and right arrow keys go there too.
  10. At the bottom, the footer: a note on how this site is built, links to Illustrations, Pens, Concepts and Accessibility, this Describe this page button, then GitHub, LinkedIn and email.

What you can do here

Learn what this criterion asks, and what your part of the fix is.

Also here

The quotes are written to illustrate the criterion. They are not from real people.