Closed bug report

Esc doesn't close the AI accounts modal (all modals should close on Esc)

Drew Owens · 15d ago ·closed by Kyle Bergstedt

What happens: The AI accounts modal (Claude Code / Codex / Antigravity / Kimi Code sign-in, with "Editor actions" and a Close button) opens as expected, but pressing Esc does nothing. The only way out is to click Close.

Repro

  1. Open the AI accounts modal in Hydrogen on Mac.
  2. Press Esc.
  3. The modal stays open.

Expected: Esc closes it, the same as clicking Close.

General ask: Every Hydrogen modal and dialog should close on Esc. That's the standard macOS behavior (Esc maps to Cancel). An app-wide modal helper that binds Esc to its dismiss action would cover any modal added later, too. Where a modal has an explicit "Not now" or "Cancel", Esc should do the same thing. One example is the Screen Recording dialog in #6.

Environment: Hydrogen for macOS 0.1.420 (public, stable), Apple Silicon.

Reported by Drew (drew715). @kyle FYI, this is a macOS issue.

6

1 Reply

Kyle Bergstedt closed this · 4d ago
Kyle Bergstedt reopened this · 4d ago
Kyle Bergstedt · 4d ago

fixed in 0.1.429-dev.12: esc closes the ai accounts window (skip for now during first-run setup); it takes focus when it opens so esc works even from the editor

Kyle Bergstedt closed this · 4d ago

Log in to reply.