Move Toggle Fullscreen to the bottom of the View menu
This commit is contained in:
parent
2e043453c0
commit
87c9926fe8
2 changed files with 12 additions and 6 deletions
|
@ -90,9 +90,6 @@ app.once('ready', () => {
|
||||||
if (focusedWindow) focusedWindow.reload()
|
if (focusedWindow) focusedWindow.reload()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
role: 'togglefullscreen'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: 'Toggle Developer Tools',
|
label: 'Toggle Developer Tools',
|
||||||
accelerator: process.platform === 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
|
accelerator: process.platform === 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
|
||||||
|
@ -133,6 +130,12 @@ app.once('ready', () => {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'separator'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
role: 'togglefullscreen'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -79,15 +79,18 @@ const template = [
|
||||||
if (focusedWindow) focusedWindow.reload()
|
if (focusedWindow) focusedWindow.reload()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
role: 'togglefullscreen'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: 'Toggle Developer Tools',
|
label: 'Toggle Developer Tools',
|
||||||
accelerator: process.platform === 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
|
accelerator: process.platform === 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
|
||||||
click (item, focusedWindow) {
|
click (item, focusedWindow) {
|
||||||
if (focusedWindow) focusedWindow.webContents.toggleDevTools()
|
if (focusedWindow) focusedWindow.webContents.toggleDevTools()
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'separator'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
role: 'togglefullscreen'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue