From 8d73a215c1cef8163457117a703eda7d8a153bb5 Mon Sep 17 00:00:00 2001 From: kramo <93832451+kra-mo@users.noreply.github.com> Date: Sun, 4 Feb 2024 20:42:41 +0100 Subject: [PATCH] fix: use Ctrl+Q for quit menu accelerator on Linux --- app/src/main-process/menu/build-default-menu.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main-process/menu/build-default-menu.ts b/app/src/main-process/menu/build-default-menu.ts index d03c4644024..4625ed3963f 100644 --- a/app/src/main-process/menu/build-default-menu.ts +++ b/app/src/main-process/menu/build-default-menu.ts @@ -121,6 +121,7 @@ export function buildDefaultMenu({ if (!__DARWIN__) { const fileItems = fileMenu.submenu as Electron.MenuItemConstructorOptions[] + const exitAccelerator = __WIN32__ ? 'Alt+F4' : 'CmdOrCtrl+Q' fileItems.push( separator, @@ -134,7 +135,7 @@ export function buildDefaultMenu({ { role: 'quit', label: 'E&xit', - accelerator: 'Alt+F4', + accelerator: exitAccelerator, } ) }