Skip to content

New Window shortcut (Ctrl+Shift+N) does nothing on Windows desktop #41592

Description

@JasenHTGI

Description

The desktop menu shows File → New Window with a Ctrl+Shift+N keybind hint,
but pressing the shortcut does nothing. Clicking the menu item opens a new window
fine, so only the keyboard accelerator is dead.

Other shortcuts (settings Ctrl+,, zoom Ctrl+0/Ctrl++/Ctrl+-, and the edit
shortcuts) work correctly. Ctrl+Shift+N is the only broken one.

Root cause (from source)

The menu accelerators are defined in packages/app/src/desktop-menu.ts per
platform (macos: "Cmd+Shift+N", windows: "Ctrl+Shift+N"). macOS registers them
via a native Electron menu (packages/desktop/src/main/menu.ts), but that function
returns early on Windows (if (process.platform !== "darwin") return). Windows uses
an in-app dropdown (packages/app/src/components/windows-app-menu.tsx) where the
accelerator is only rendered as a label — nothing ever listens for the keystroke.
window.new is an action (not a command), so the renderer command keybind system
doesn't cover it either, and Electron's default menu (active on Windows) has no
"New Window" item. So Ctrl+Shift+N is never wired to createMainWindow().

Plugins

None

OpenCode version

1.18.16

Steps to reproduce

  1. Open the OpenCode desktop app on Windows.
  2. Press Ctrl+Shift+N.
  3. Nothing happens. (File → New Window via the menu works.)

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

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