зеркало из https://github.com/electron/electron.git
Use togglefullscreen role
This commit is contained in:
Родитель
2536e62fb0
Коммит
3cdf36c536
|
@ -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',
|
||||
|
|
Загрузка…
Ссылка в новой задаче