This commit is contained in:
R Midhun Suresh
2025-12-11 17:57:18 +05:30
parent fd3f5cb9a0
commit 12746b7107
+1 -1
View File
@@ -505,7 +505,7 @@ app.on("ready", async () => {
global.mainWindow.webContents.on("before-input-event", (event: Event, input: Input): void => { global.mainWindow.webContents.on("before-input-event", (event: Event, input: Input): void => {
const exitShortcutPressed = const exitShortcutPressed =
input.type === "keyDown" && exitShortcuts.some((shortcutFn) => shortcutFn(input, process.platform)); input.type === "keyDown" && exitShortcuts.some((shortcutFn) => shortcutFn(input, process.platform));
// We only care about the exit shortcuts here // We only care about the exit shortcuts here
if (!exitShortcutPressed || !global.mainWindow) return; if (!exitShortcutPressed || !global.mainWindow) return;