Skip to content

ESC key does not close command palette (Ctrl+P) and other popups (MacOs Version 26.3) #15202

Closed

Description

@brankoqa

Description

When the commands popup is opened via Ctrl+P (or any other popup dialog), pressing the ESC key does not close it. This affects all popups in the TUI.

Steps to reproduce

  1. Open opencode in terminal
  2. Press Ctrl+P to open the commands popup
  3. Press ESC to try to close it
  4. Nothing happens - the popup remains open

Expected result

The commands popup (and other popups) should close when ESC is pressed.

Actual result

The popup remains open. The ESC key press is not closing the dialog.

Additional context

This appears to be a regression or known issue:

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Feb 26, 2026
  2. github-actions commented on Feb 26, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    For keybind-related issues, please also check our pinned keybinds documentation: #4997

  3. changed the title [-]ESC key does not close command palette (Ctrl+P) and other popups[/-] [+]ESC key does not close command palette (Ctrl+P) and other popups (MacOs Version 26.3)[/+] on Feb 26, 2026
  4. kommander commented on Feb 27, 2026

    @kommander
    Collaborator

    Which version does this happen in? There has been a related issue recently that has been fixed in the latest version.

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

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions