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',
|
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',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue