Use togglefullscreen role

This commit is contained in:
Kevin Sawicki 2016-06-21 09:34:41 -07:00
parent 2536e62fb0
commit 3cdf36c536

View file

@ -107,12 +107,8 @@ app.once('ready', () => {
}, },
{ {
label: 'Toggle Full Screen', label: 'Toggle Full Screen',
accelerator: (() => { role: 'togglefullscreen',
return (process.platform === 'darwin') ? 'Ctrl+Command+F' : 'F11' accelerator: process.platform === 'darwin' ? 'Ctrl+Command+F' : 'F11'
})(),
click (item, focusedWindow) {
if (focusedWindow) focusedWindow.setFullScreen(!focusedWindow.isFullScreen())
}
}, },
{ {
label: 'Toggle Developer Tools', label: 'Toggle Developer Tools',