From 5492e6ecf8b6c9875db562c305e1059842b79b29 Mon Sep 17 00:00:00 2001 From: Kush Makkapati Date: Fri, 28 Nov 2025 13:18:02 +0000 Subject: [PATCH 1/2] Hard refresh on ctrl+r --- gcs/electron/main.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gcs/electron/main.ts b/gcs/electron/main.ts index 217d65c45..bbad366d2 100644 --- a/gcs/electron/main.ts +++ b/gcs/electron/main.ts @@ -272,6 +272,14 @@ function createWindow() { closeWithBackend() }) + // Listen for key events to trigger hard refresh + win.webContents.on("before-input-event", (event, input) => { + if (input.control && input.key === "r") { + event.preventDefault() // Prevent default refresh + win?.webContents.reloadIgnoringCache() // Perform hard refresh + } + }) + // Set Main Menu on Mac Only if (process.platform === "darwin") { setMainMenu() From 432044c19a55386d8ac15453796da41ee7e616b6 Mon Sep 17 00:00:00 2001 From: Kush Makkapati Date: Fri, 28 Nov 2025 13:22:01 +0000 Subject: [PATCH 2/2] Add command key detection for mac --- gcs/electron/main.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcs/electron/main.ts b/gcs/electron/main.ts index bbad366d2..9006ba1a8 100644 --- a/gcs/electron/main.ts +++ b/gcs/electron/main.ts @@ -274,7 +274,10 @@ function createWindow() { // Listen for key events to trigger hard refresh win.webContents.on("before-input-event", (event, input) => { - if (input.control && input.key === "r") { + const controlKeyPressed = + process.platform === "darwin" ? input.meta : input.control + + if (controlKeyPressed && input.key === "r") { event.preventDefault() // Prevent default refresh win?.webContents.reloadIgnoringCache() // Perform hard refresh }