From 2d958cc75f9e719a3d7a212bb098ed75e2e0492a Mon Sep 17 00:00:00 2001 From: Vishwas Shashidhar Date: Wed, 17 Jul 2019 11:55:29 +0530 Subject: [PATCH] fix: ELECTRON-1406: fix issue in windows menu popping up for custom title bar (#736) * ELECTRON-1406: fix issue in windows menu popping up for custom title bar * ELECTRON-1406: apply PR suggestions --- src/app/window-actions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/window-actions.ts b/src/app/window-actions.ts index e0faff3e..48eb9de3 100644 --- a/src/app/window-actions.ts +++ b/src/app/window-actions.ts @@ -146,7 +146,7 @@ export const handleKeyPress = (key: number): void => { break; } case KeyCodes.Alt: - if (isMac) { + if (isMac || windowHandler.isCustomTitleBar) { return; } const browserWin = BrowserWindow.getFocusedWindow() as ICustomBrowserWindow;