From 35ee57483aceab742f06eeba2c0effd58f474bac Mon Sep 17 00:00:00 2001 From: Amelia Frost Date: Sun, 5 Apr 2026 23:15:07 -0700 Subject: [PATCH] Allow closing the about window by pressing Escape --- src/native/about.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/native/about.ts b/src/native/about.ts index d43c590..6a3999f 100644 --- a/src/native/about.ts +++ b/src/native/about.ts @@ -48,4 +48,12 @@ export function createAboutWindow() { aboutWindow.on("closed", () => { aboutWindow = null; }); + + // Close window on Escape + aboutWindow.webContents.on("before-input-event", (event, input) => { + if (input.key.toLowerCase() === "escape") { + event.preventDefault(); + aboutWindow.close(); + } + }); }