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
This commit is contained in:
Vishwas Shashidhar 2019-07-17 11:55:29 +05:30 committed by GitHub
parent 660455b164
commit 2d958cc75f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;