Use togglefullscreen role
This commit is contained in:
parent
2536e62fb0
commit
3cdf36c536
1 changed files with 2 additions and 6 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue