Skip to content

Commit e0bdc72

Browse files
committed
Disable reload shortcuts
1 parent bd7a3f0 commit e0bdc72

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/menu.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ export const getMenu = (browserWindows: Electron.BrowserWindow[]) => {
3232
{ type: 'separator' },
3333
{ role: 'togglefullscreen' },
3434
{ type: 'separator' },
35-
{ role: 'reload' },
36-
{ role: 'forceReload' },
35+
// Reload shortcuts disabled because they're rarely used and very easy to hit accidentally when debugging
36+
// traffic in a web browser at the same time
37+
{ role: 'reload', accelerator: '' },
38+
{ role: 'forceReload', accelerator: '' },
3739
{ role: 'toggleDevTools' }
3840
]
3941
},

0 commit comments

Comments
 (0)