Accessibility · Senior · Question 22 of 75
Why is inert better than a focus trap built with sentinel elements?
- 1The background really is unreachable, including virtual cursors
- 2It makes custom dialogs render faster on low-end mobile phones
- 3It's the only method that works with an Esc key handler
Show the answer
Correct answer: The background really is unreachable, including virtual cursors
Explanation
Key-based traps only catch Tab, while screen reader users can still browse behind the modal. showModal() gives you this behaviour natively.