Skip to content

Allow closing compact command menus with Esc - #531

Open
adi-IL wants to merge 1 commit into
vercel-labs:mainfrom
adi-IL:fix/compact-menu-esc-close
Open

Allow closing compact command menus with Esc#531
adi-IL wants to merge 1 commit into
vercel-labs:mainfrom
adi-IL:fix/compact-menu-esc-close

Conversation

@adi-IL

@adi-IL adi-IL commented Aug 30, 2026

Copy link
Copy Markdown

When a compact command menu (such as usage, statusline, or workspace) is active, routeActiveModalInput intercepts raw input bytes and returns true for all unhandled keys.

Because raw byte 27 (Esc) fell through to else => {}, pressing Esc was swallowed without closing the active compact menu.

Handle byte 27 by invoking cancelCompactCommandMenu and requesting a footer redraw.

Fixes #196.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: "check usage" screen cannot be closed with Esc

1 participant