From da383611c0f36df94cbc03029cdfb4f40eeeaa92 Mon Sep 17 00:00:00 2001 From: Amelia Frost Date: Sat, 4 Apr 2026 20:54:16 -0700 Subject: [PATCH] on macOS, open/close Settings with Cmd+, --- src/native/window.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/native/window.ts b/src/native/window.ts index c4f4190..2d54825 100644 --- a/src/native/window.ts +++ b/src/native/window.ts @@ -157,6 +157,18 @@ export function createMainWindow() { } else { mainWindow.webContents.openDevTools({ mode: "detach" }); } + } else if ( + input.meta && + input.key === "," && + process.platform === "darwin" + ) { + mainWindow.webContents.executeJavaScript(`(() => { + var escButton = document.querySelector("#floating .top_0 > button"); + var settingsPanel = document.querySelector("#root div[aria-label='Settings'] > a"); + + if (escButton) escButton.click(); + if (!escButton && settingsPanel) settingsPanel.click(); + })();`); } });