From e51e2480525c027fceb0b5361c6c3882238d335c Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Fri, 18 Aug 2023 04:25:11 -0600 Subject: [PATCH] Don't intercept Ctrl + Cmd + Q on macOS (#1174) --- src/electron-main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/electron-main.ts b/src/electron-main.ts index b8d46a7..7770dcb 100644 --- a/src/electron-main.ts +++ b/src/electron-main.ts @@ -260,7 +260,7 @@ global.appQuitting = false; const exitShortcuts: Array<(input: Input, platform: string) => boolean> = [ (input, platform): boolean => platform !== "darwin" && input.alt && input.key.toUpperCase() === "F4", (input, platform): boolean => platform !== "darwin" && input.control && input.key.toUpperCase() === "Q", - (input, platform): boolean => platform === "darwin" && input.meta && input.key.toUpperCase() === "Q", + (input, platform): boolean => platform === "darwin" && input.meta && !input.control && input.key.toUpperCase() === "Q", ]; const warnBeforeExit = (event: Event, input: Input): void => {