Add toggledevtools menu item role
This commit is contained in:
parent
0698b5f1be
commit
88959079bd
2 changed files with 7 additions and 6 deletions
|
@ -87,11 +87,7 @@ app.once('ready', () => {
|
|||
role: 'reload'
|
||||
},
|
||||
{
|
||||
label: 'Toggle Developer Tools',
|
||||
accelerator: process.platform === 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
|
||||
click (item, focusedWindow) {
|
||||
if (focusedWindow) focusedWindow.toggleDevTools()
|
||||
}
|
||||
role: 'toggledevtools'
|
||||
},
|
||||
{
|
||||
type: 'separator'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue