Skip to content

(desktop) custom shortcut for toggle terminal doesn't work if terminal is focused #12637

@ryanmiville

Description

@ryanmiville

Description

It is currently hard-coded to only look for the default keybinding (ctrl+`). If the user changes their shortcut, they can't close the terminal while the terminal is focused.

Plugins

none

OpenCode version

1.1.53

Steps to reproduce

  1. change your toggle terminal shortcut
  2. use it to open terminal
  3. press it again after terminal is focused
  4. the terminal will remain open and focused

Screenshot and/or share link

No response

Operating System

macOS 26.2

Terminal

Ghostty

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktop

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions