Accessibility · Junior · Question 74 of 75

What is a keyboard trap?

Show the answer

Correct answer: Focus enters a component and the keyboard can't leave it

Explanation

Embedded video players and code editors are typical offenders. A modal keeps focus inside on purpose, but it must always offer a keyboard way out, like Esc.

Further reading

Problem with a question

Accessibility · Junior · question 74

Test yourself

Take the Accessibility · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz