Rule 15.27, Accessibility and input

Never trap keyboard focus

Hard

Rule. Never trap keyboard focus, and let Esc leave every layer.

Why. Keyboard, switch, and voice users send keys, so a trap or a mouse-only function locks them out.

Figure. Tab reaches the button. Esc leaves a layer. Nothing traps focus.