summarylogtreecommitdiffstats
path: root/f5reload.patch
blob: 6573789faef2efa574f503d7da1eb67b517383e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/main.js b/main.js
index 22e514a..7b84f69 100644
--- a/main.js
+++ b/main.js
@@ -37,6 +37,12 @@ app.whenReady().then(() => {
         if (input.key === 'F12') {
             win.webContents.toggleDevTools();
           event.preventDefault();
+        } else  if (input.key === 'F5') {
+            win.webContents.reload()
+            event.preventDefault();
+        } else  if (input.key === 'F5' && input.control) {
+            win.webContents.reloadIgnoringCache()
+            event.preventDefault();
         }
     });
     win.webContents.on("did-finish-load", () => {