Skip to content

Commit 181affe

Browse files
committed
feat(desktop): Cmd+Q closes the window without quitting the app
1 parent d19665f commit 181affe

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
@@ -4681,7 +4681,19 @@ function installAppMenu(): void {
46814681
{ role: "hideOthers" },
46824682
{ role: "unhide" },
46834683
{ type: "separator" },
4684-
{ role: "quit", label: "Quit ZenNotes" },
4684+
{
4685+
label: "Close Window",
4686+
accelerator: "CmdOrCtrl+Q",
4687+
click: () => {
4688+
const target = BrowserWindow.getFocusedWindow() ?? mainWindow;
4689+
target?.close();
4690+
},
4691+
},
4692+
{ type: "separator" },
4693+
{
4694+
label: "Completely Quit ZenNotes",
4695+
click: () => app.quit(),
4696+
},
46854697
],
46864698
},
46874699
{

0 commit comments

Comments
 (0)