Skip to content

Add keyboard shortcut (Escape) to close wizard confirmation dialogs #17

Description

@aimerdoux

Problem

The wizard has confirmation dialogs (e.g. "Are you sure you want to reset?") that can only be dismissed by clicking a button. Pressing Escape should dismiss them, which is standard browser UX and reduces friction for keyboard-driven users.

Acceptance criteria

  • Pressing Escape while a confirmation dialog is open dismisses it (equivalent to clicking "Cancel")
  • Focus returns to the triggering element after dismiss
  • Behaviour is consistent across all wizard confirmation dialogs
  • No new dependencies introduced (use a useEffect with keydown listener or the existing dialog primitive's built-in handling)

Scope estimate

~1–2 hours. This is a focused UI accessibility fix with no data-layer changes.

Getting started

Search for modal/dialog components in packages/onboarding-ui/src/. Look for dialog, modal, or confirm in component names. Add an onKeyDown or useEffect that checks event.key === 'Escape'.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions