Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions gcs/electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,17 @@ function createWindow() {
closeWithBackend()
})

// Listen for key events to trigger hard refresh
win.webContents.on("before-input-event", (event, input) => {
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
}
Comment thread
Kwash67 marked this conversation as resolved.
})

// Set Main Menu on Mac Only
if (process.platform === "darwin") {
setMainMenu()
Expand Down