Use default electron implementation for zoomin, zoomout and resetzoom

See: https://github.com/electron/electron/pull/6777
This commit is contained in:
Kolja Lampe
2016-08-11 20:58:32 +02:00
parent 0d76af70cb
commit 9557ca14bf
2 changed files with 4 additions and 37 deletions

View File

@@ -112,30 +112,16 @@ var createTemplate = function(mainWindow, config) {
}, {
role: 'togglefullscreen'
}, separatorItem, {
label: 'Actual Size',
accelerator: 'CmdOrCtrl+0',
click: () => {
mainWindow.webContents.send('zoom-reset');
}
role: 'resetzoom'
}, {
label: 'Zoom In',
accelerator: 'CmdOrCtrl+Plus',
click: () => {
mainWindow.webContents.send('zoom-in', 1);
}
role: 'zoomin'
}, {
label: 'Zoom In (hidden)',
accelerator: 'CmdOrCtrl+=',
visible: false,
click: () => {
mainWindow.webContents.send('zoom-in', 1);
}
role: 'zoomin'
}, {
label: 'Zoom Out',
accelerator: 'CmdOrCtrl+-',
click: () => {
mainWindow.webContents.send('zoom-in', -1);
}
role: 'zoomout'
}, separatorItem, {
label: 'Toggle Developer Tools',
accelerator: (function() {