Skip to content

FlashcardNot attempted

Keyboard patterns

Recall it before you reveal

What keyboard behaviour do users expect from tabs, menus and dialogs?

Space to reveal
Show answer & explanation
  • Tabs: Tab moves INTO the tablist once (roving tabindex); ←/→ (and Home/End) switch tabs; Tab moves on to the panel.
  • Menus/listboxes: ↑/↓ move, Enter/Space select, Esc closes and returns focus to the trigger.
  • Dialogs: focus moves inside on open, Tab is trapped inside, Esc closes, focus returns to the opener. Native <dialog>.showModal() does most of this.

The source of truth is the WAI-ARIA Authoring Practices Guide (APG).