Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

Commit

Permalink
feat: add developer tools shortcuts
Browse files Browse the repository at this point in the history
closes #323
  • Loading branch information
sentialx committed Sep 19, 2019
1 parent 95c4055 commit 91eed46
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/main/menus/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,26 @@ export const getMainMenu = (windowsManager: WindowsManager) => {
});
},
},
{
accelerator: 'F12',
label: 'Toggle developer tools (contents)',
visible: false,
click() {
setTimeout(() => {
windowsManager.currentWindow.viewManager.selected.webContents.openDevTools();
});
},
},
{
accelerator: 'Ctrl+Shift+I',
label: 'Toggle developer tools (contents)',
visible: false,
click() {
setTimeout(() => {
windowsManager.currentWindow.viewManager.selected.webContents.openDevTools();
});
},
},
],
},
{ role: 'editMenu' },
Expand Down

0 comments on commit 91eed46

Please sign in to comment.