Move "Toggle Developer Tools" item to bottom of the menu

This commit is contained in:
Yuya Ochiai 2016-06-18 20:41:11 +09:00
parent b91e44a5fe
commit 056b508ac3

View file

@ -138,23 +138,6 @@ var createTemplate = function(mainWindow, config) {
focusedWindow.setFullScreen(!focusedWindow.isFullScreen()); focusedWindow.setFullScreen(!focusedWindow.isFullScreen());
} }
} }
}, {
type: 'separator'
}, {
label: 'Toggle Developer Tools',
accelerator: (function() {
if (process.platform === 'darwin') {
return 'Alt+Command+I';
}
else {
return 'Ctrl+Shift+I';
}
})(),
click: function(item, focusedWindow) {
if (focusedWindow) {
focusedWindow.toggleDevTools();
}
}
}, separatorItem, { }, separatorItem, {
label: 'Actual Size', label: 'Actual Size',
accelerator: 'CmdOrCtrl+0', accelerator: 'CmdOrCtrl+0',
@ -173,6 +156,21 @@ var createTemplate = function(mainWindow, config) {
click: () => { click: () => {
mainWindow.webContents.send('zoom-in', -1); mainWindow.webContents.send('zoom-in', -1);
} }
}, separatorItem, {
label: 'Toggle Developer Tools',
accelerator: (function() {
if (process.platform === 'darwin') {
return 'Alt+Command+I';
}
else {
return 'Ctrl+Shift+I';
}
})(),
click: function(item, focusedWindow) {
if (focusedWindow) {
focusedWindow.toggleDevTools();
}
}
}] }]
}); });