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',
accelerator: (() => {
return (process.platform === 'darwin') ? 'Ctrl+Command+F' : 'F11'
})(),
click (item, focusedWindow) {
if (focusedWindow) focusedWindow.setFullScreen(!focusedWindow.isFullScreen())
}
role: 'togglefullscreen',
accelerator: process.platform === 'darwin' ? 'Ctrl+Command+F' : 'F11'
},
{
label: 'Toggle Developer Tools',