Skip to content

Keybind: ctrl+_ stopped working in 1.0 #3848

Closed

Description

@jdanbrown

Description

The ctrl+_ keybind (sent by pressing ctrl+/) used to work in 0.15.31 but no longer works in 1.0.16. Example:

"keybinds": {
  "model_list": "ctrl+_",
}

Note that when you press ctrl+/, VS Code terminals send ctrl+_ (which gpt5 says is "more correct" 🤷) but iTerm2 sends ctrl+/. So YMMV depending on terminal.

OpenCode version

1.0.16

Steps to reproduce

(above)

Screenshot and/or share link

No response

Operating System

macOS 15.5

Terminal

VS Code terminal

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 3, 2025
  2. github-actions commented on Nov 3, 2025

    @github-actions
    Contributor

    This issue might be related to other keybinding problems introduced in version 1.0. Please check:

    While none of these specifically address ctrl+_ (ctrl+/), they represent a broader pattern of keybinding regressions in v1.0 that might share the same underlying cause.

  3. thdxr commented on Nov 3, 2025

    @thdxr
    Member

    fixed will release soon

  4. jdanbrown commented on Nov 3, 2025

    @jdanbrown
    ContributorAuthor

    Verified it's working in 1.0.18, thank you!

  5. JSCOP commented on Nov 4, 2025

    @JSCOP

    These keybinds are not working on 1.0.19.
    Does anyone can verified these keybinds are working?
    @thdxr @jdanbrown
    {
    "$schema": "https://opencode.ai/config.json",
    "keybinds": {
    "input_submit": "ctrl+enter",
    "input_newline": "enter",
    }
    }

  6. rekram1-node commented on Nov 4, 2025

    @rekram1-node
    Collaborator

    @JSCOP we have a separate issue tracking newline behaviors

  7. JSCOP commented on Nov 4, 2025

    @JSCOP

    @rekram1-node 1.0.20 doesn't work either please fix this please

  8. rekram1-node commented on Nov 4, 2025

    @rekram1-node
    Collaborator

    @JSCOP what doesn't work? are we talking about newline still? Like I said for that, separate issue and we are going to fix it

  9. JSCOP commented on Nov 6, 2025

    @JSCOP

    @rekram1-node
    I found the reason why the keybinds weren’t working.

    "keybinds": {
    "input_newline": "return",
    "input_submit": "ctrl+p"
    }

    It looks like enter was changed to return, so input_newline works fine.
    But input_submit doesn’t work when I bind it to ctrl+return.
    I’m guessing ctrl+return is already bound to something else.

    So I changed the terminal keybind for ctrl+return to act as ctrl+p, and now everything works the way I want.

  10. rekram1-node commented on Nov 6, 2025

    @rekram1-node
    Collaborator

    interesting, thanks for clarifying

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingopentuiThis 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