Accessibility · Junior · Question 74 of 75
What is a keyboard trap?
- 1A shortcut that overrides one of the browser's own keys
- 2Focus enters a component and the keyboard can't leave it
- 3A script that records everything the user types on a page
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.