From 5eb87e6ce94d57db459d101dadbaaa1039816477 Mon Sep 17 00:00:00 2001 From: Mehmet Bektas Date: Tue, 26 Dec 2023 19:51:51 -0800 Subject: [PATCH] fix Ctrl + W handling on macOS --- src/main/labview/labview.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/labview/labview.ts b/src/main/labview/labview.ts index 1000e2d9..af58689a 100644 --- a/src/main/labview/labview.ts +++ b/src/main/labview/labview.ts @@ -85,7 +85,8 @@ export class LabView implements IDisposable { this._view.webContents.on('before-input-event', async (event, input) => { if ( input.code === 'KeyW' && - ((input.meta && process.platform === 'darwin') || input.control) + ((input.meta && process.platform === 'darwin') || + (input.control && process.platform !== 'darwin')) ) { let skipClose = false; @@ -112,6 +113,7 @@ export class LabView implements IDisposable { skipClose = choice === 1; } else { + // CtrlWBehavior.DoNotClose skipClose = true; }