Move Toggle Fullscreen to the bottom of the View menu

This commit is contained in:
Milan Burda 2016-08-01 15:44:25 +02:00
parent 2e043453c0
commit 87c9926fe8
2 changed files with 12 additions and 6 deletions

View file

@ -90,9 +90,6 @@ app.once('ready', () => {
if (focusedWindow) focusedWindow.reload()
}
},
{
role: 'togglefullscreen'
},
{
label: 'Toggle Developer Tools',
accelerator: process.platform === 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
@ -133,6 +130,12 @@ app.once('ready', () => {
})
}
}
},
{
type: 'separator'
},
{
role: 'togglefullscreen'
}
]
},

View file

@ -79,15 +79,18 @@ const template = [
if (focusedWindow) focusedWindow.reload()
}
},
{
role: 'togglefullscreen'
},
{
label: 'Toggle Developer Tools',
accelerator: process.platform === 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
click (item, focusedWindow) {
if (focusedWindow) focusedWindow.webContents.toggleDevTools()
}
},
{
type: 'separator'
},
{
role: 'togglefullscreen'
}
]
},