OpenCode desktop on macOS doesn't recognize for option keys #7679

Open
opened 2026-02-16 18:07:55 -05:00 by yindo · 1 comment
Owner

Originally created by @HyunggyuJang on GitHub (Jan 26, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

option+b or option+f are not recognized from OpenCode desktop app on macOS.
I'm using Unicode Hex Input keyboard to make option key works as expected with

        targets.darwin.keybindings = {
...
          # Meta shortcuts
          "~y" = "yankPop:";
          "~f" = "moveWordForward:";
          "~b" = "moveWordBackward:";
...
        };

Configuration, and it works generally for cocoa apps.

In general, from OpenCode desktop app doesn't recognize option key + key; it interprets as a dead key, see the reprod steps.

Plugins

No response

OpenCode version

1.1.36

Steps to reproduce

  1. Open OpenCode desktop app
  2. Trying to add key shortcut
  3. Type option key + something, like option + b
  4. Then, it appears as dead:
Image

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @HyunggyuJang on GitHub (Jan 26, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description option+b or option+f are not recognized from OpenCode desktop app on macOS. I'm using Unicode Hex Input keyboard to make option key works as expected with ```nix targets.darwin.keybindings = { ... # Meta shortcuts "~y" = "yankPop:"; "~f" = "moveWordForward:"; "~b" = "moveWordBackward:"; ... }; ``` Configuration, and it works generally for cocoa apps. In general, from OpenCode desktop app doesn't recognize option key + key; it interprets as a dead key, see the reprod steps. ### Plugins _No response_ ### OpenCode version 1.1.36 ### Steps to reproduce 1. Open OpenCode desktop app 2. Trying to add key shortcut 3. Type option key + something, like option + b 4. Then, it appears as dead: <img width="689" height="359" alt="Image" src="https://github.com/user-attachments/assets/afbfabd5-ac9a-43e3-a22e-b560c4aaaa70" /> ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bugweb labels 2026-02-16 18:07:55 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 26, 2026):

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

  • #2688: Opencode freezes when pressing option + left arrow key on MacBook with high CPU usage
  • #6364: Hotkeys don't work if the keyboard layout isn't english (or similar latin alphabet layout)

Both issues are related to macOS keyboard input handling, particularly with modifier keys. Feel free to ignore if none of these address your specific case.

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

@github-actions[bot] commented on GitHub (Jan 26, 2026): This issue might be a duplicate of existing issues. Please check: - #2688: Opencode freezes when pressing `option` + left arrow key on MacBook with high CPU usage - #6364: Hotkeys don't work if the keyboard layout isn't english (or similar latin alphabet layout) Both issues are related to macOS keyboard input handling, particularly with modifier keys. Feel free to ignore if none of these address your specific case. For keybind-related issues, please also check our pinned keybinds documentation: #4997
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7679