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(); + } + }); }