Skip to content

[FEATURE]: Escape key should focus the prompt input field in Desktop #30887

Closed as not planned

Description

@claell

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

In Codex Desktop, pressing the Escape key at any time focuses the typing/input field. This is a very convenient UX pattern: regardless of where focus currently is (message list, sidebar, etc.), a single Esc press brings focus back to the prompt so you can immediately start typing.

OpenCode Desktop does not currently support this. When focus is elsewhere (e.g. after scrolling through the conversation), there is no quick keyboard shortcut to return to the input field — you have to click it with the mouse.

Desired behavior: Pressing Escape in OpenCode Desktop should move focus to the prompt input field, so the user can start typing immediately. This matches the Codex Desktop convention.

Use case: During a long conversation, the user scrolls up to read previous messages. Instead of having to click the input box to continue, they simply press Esc and start typing.

Environment: OpenCode Desktop 1.15.13, Windows

Activity

  1. github-actions commented on Jun 5, 2026

    @github-actions
    Contributor

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


    This issue might also be related to an existing request for the TUI surface covering the same concept (re-focusing the input). Please check:

  2. claell commented on Jun 5, 2026

    @claell
    Author

    Related: #17268 mentions that the Web/Desktop version already has input.focus bound to Ctrl+L in use-session-commands.tsx, but notes the TUI lacks an equivalent. This feature request is specifically about making Escape the shortcut for this in Desktop, matching the Codex Desktop convention.

  3. github-actions commented on Aug 5, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions