Use the role for 'toggle dev tools'

Let electron handle it rather than doing it ourselves
pull/2915/head
David Baker 2017-01-11 10:28:04 +00:00
parent 6a1af891b7
commit b71f96e4e5
1 changed files with 1 additions and 5 deletions

View File

@ -72,11 +72,7 @@ const template = [
role: 'togglefullscreen'
},
{
label: 'Toggle Developer Tools',
accelerator: process.platform == 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
click: function(item, focusedWindow) {
if (focusedWindow) focusedWindow.toggleDevTools();
}
role: 'toggledevtools'
}
]
},