You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]:add config option to disable Electron native menu accelerators (Ctrl+M/Ctrl+W) #34937
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
On Windows, the OpenCode Desktop app uses Electron's built-in { role: "windowMenu" } menu, which registers Ctrl+M as the "Minimize" accelerator and Ctrl+W as "Close". This cannot be disabled through opencode.json or tui.json because it's handled at the Electron/native menu level, not the TUI keybind system.
For users who want to use Ctrl+M or Ctrl+W for other purposes (or who find Ctrl+M accidentally minimizes the window), there is currently no way to disable these native accelerators.
Describe the solution you'd like
Add a config option, either in opencode.json or tui.json, to disable or customize the Electron native menu accelerators. Some possibilities:
Or simply an option to replace { role: "windowMenu" } with a custom Window menu that omits the minimize accelerator.
Describe alternatives you've considered
Using AutoHotkey to intercept Ctrl+M — works but requires third-party software
Manually patching the Electron app — gets wiped on every update
Neither is a proper solution for end users.
Additional context
This is related to the Electron windowMenu role which on Windows defaults to Minimize (Ctrl+M) and Close (Ctrl+W). On macOS the same role uses Cmd+M/Cmd+W which are more standard and less likely to conflict.
Activity
github-actions commentedon Jul 2, 2026
For keybind-related issues, please also check our pinned keybinds documentation: #4997
github-actions commentedon Sep 1, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.