We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d8dd1c commit 6e7333eCopy full SHA for 6e7333e
app/renderer/js/preload.js
@@ -63,3 +63,10 @@ window.addEventListener('beforeunload', () => {
63
SetupSpellChecker.unsubscribeSpellChecker();
64
});
65
66
+// electron's globalShortcut can cause unexpected results
67
+// so adding the reload shortcut in the old-school way
68
+document.addEventListener('keydown', event => {
69
+ if (event.code === 'F5') {
70
+ ipcRenderer.send('forward-message', 'hard-reload');
71
+ }
72
+});
0 commit comments