Document 'zoom' role + add missing menu items (Delete / Paste and Match Style / Zoom)
This commit is contained in:
parent
c68ca16148
commit
f5699ad3a6
3 changed files with 51 additions and 4 deletions
|
@ -80,6 +80,15 @@ app.once('ready', () => {
|
|||
accelerator: 'CmdOrCtrl+V',
|
||||
role: 'paste'
|
||||
},
|
||||
{
|
||||
label: 'Paste and Match Style',
|
||||
accelerator: 'Shift+Command+V',
|
||||
role: 'pasteandmatchstyle'
|
||||
},
|
||||
{
|
||||
label: 'Delete',
|
||||
role: 'delete'
|
||||
},
|
||||
{
|
||||
label: 'Select All',
|
||||
accelerator: 'CmdOrCtrl+A',
|
||||
|
@ -210,7 +219,21 @@ app.once('ready', () => {
|
|||
}
|
||||
]
|
||||
})
|
||||
template[3].submenu.push(
|
||||
template[3].submenu = [
|
||||
{
|
||||
label: 'Close',
|
||||
accelerator: 'CmdOrCtrl+W',
|
||||
role: 'close'
|
||||
},
|
||||
{
|
||||
label: 'Minimize',
|
||||
accelerator: 'CmdOrCtrl+M',
|
||||
role: 'minimize'
|
||||
},
|
||||
{
|
||||
label: 'Zoom',
|
||||
role: 'zoom'
|
||||
},
|
||||
{
|
||||
type: 'separator'
|
||||
},
|
||||
|
@ -218,7 +241,7 @@ app.once('ready', () => {
|
|||
label: 'Bring All to Front',
|
||||
role: 'front'
|
||||
}
|
||||
)
|
||||
]
|
||||
}
|
||||
|
||||
const menu = Menu.buildFromTemplate(template)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue