Skip to content

Commit b71f96e

Browse files
committed
Use the role for 'toggle dev tools'
Let electron handle it rather than doing it ourselves
1 parent 6a1af89 commit b71f96e

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎electron/src/vectormenu.js‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,7 @@ const template = [
7272
role: 'togglefullscreen'
7373
},
7474
{
75-
label: 'Toggle Developer Tools',
76-
accelerator: process.platform == 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
77-
click: function(item, focusedWindow) {
78-
if (focusedWindow) focusedWindow.toggleDevTools();
79-
}
75+
role: 'toggledevtools'
8076
}
8177
]
8278
},

0 commit comments

Comments
 (0)