Skip to content

Commit 2870d55

Browse files
authored
🤖 fix: add macOS fullscreen keyboard shortcut (Ctrl+Cmd+F) (#882)
The `togglefullscreen` menu role doesn't automatically bind the standard macOS keyboard shortcut. This adds explicit accelerators: - **macOS**: `Ctrl+Command+F` (standard macOS fullscreen shortcut) - **Windows/Linux**: `F11` (standard fullscreen shortcut) This enables Rectangle and similar window managers to trigger fullscreen via the standard shortcut. _Generated with `mux`_
1 parent cdeffed commit 2870d55

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/desktop/main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,10 @@ function createMenu() {
172172
{ role: "zoomIn" },
173173
{ role: "zoomOut" },
174174
{ type: "separator" },
175-
{ role: "togglefullscreen" },
175+
{
176+
role: "togglefullscreen",
177+
accelerator: process.platform === "darwin" ? "Ctrl+Command+F" : "F11",
178+
},
176179
],
177180
},
178181
{

0 commit comments

Comments
 (0)