You Have to Be Able to Get Back Out
If keyboard focus can enter an interaction, keyboard users need a predictable way to leave it.
Try It
- Dialogs, custom widgets, and embedded interactions can become traps if keyboard focus cannot leave normally or the user is not told how to leave.
Quick Test
Tab into it. Use it. Can you keep going?
Read / Reference
-
Understanding WCAG 2.2: 2.1.2 No Keyboard Trap
Users need a way to move focus away from every component using only the keyboard.