Skip to content

Commit 38520d6

Browse files
committed
feat(desktop): Cmd+Q closes the window without quitting the app
1 parent e535bd0 commit 38520d6

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

apps/desktop/src/main/index.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4960,7 +4960,19 @@ function installAppMenu(): void {
49604960
{ role: "hideOthers" },
49614961
{ role: "unhide" },
49624962
{ type: "separator" },
4963-
{ role: "quit", label: "Quit ZenNotes" },
4963+
{
4964+
label: "Close Window",
4965+
accelerator: "CmdOrCtrl+Q",
4966+
click: () => {
4967+
const target = BrowserWindow.getFocusedWindow() ?? mainWindow;
4968+
target?.close();
4969+
},
4970+
},
4971+
{ type: "separator" },
4972+
{
4973+
label: "Completely Quit ZenNotes",
4974+
click: () => app.quit(),
4975+
},
49644976
],
49654977
},
49664978
{

0 commit comments

Comments
 (0)