From 641a16598ed85f3f936470f6d454a1fffbe29cb3 Mon Sep 17 00:00:00 2001 From: Aurora Luna Takemi <98479040+auroraisluna@users.noreply.github.com> Date: Thu, 16 Nov 2023 00:11:43 +0200 Subject: [PATCH] feat: Support for CTRL R for reloading (#448) --- src/main/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/index.ts b/src/main/index.ts index 512ff98f..e1410a19 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -131,6 +131,10 @@ function initializeApp() { }); } + globalShortcut.register('CmdOrCtrl+R', () => { + mainWindow.isFocused() && mainWindow.reload(); + }); + globalShortcut.register('CmdOrCtrl+F5', () => { mainWindow.isFocused() && mainWindow.reload(); });