label: 'Edit',
submenu: [
{
- label: 'Undo',
- accelerator: 'CmdOrCtrl+Z',
role: 'undo'
},
{
- label: 'Redo',
- accelerator: 'Shift+CmdOrCtrl+Z',
role: 'redo'
},
{
type: 'separator'
},
{
- label: 'Cut',
- accelerator: 'CmdOrCtrl+X',
role: 'cut'
},
{
- label: 'Copy',
- accelerator: 'CmdOrCtrl+C',
role: 'copy'
},
{
- label: 'Paste',
- 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',
role: 'selectall'
},
]
}
},
{
- label: 'Toggle Full Screen',
- accelerator: process.platform === 'darwin' ? 'Ctrl+Command+F' : 'F11',
- click(item, focusedWindow) {
- if (focusedWindow)
- focusedWindow.setFullScreen(!focusedWindow.isFullScreen());
- }
+ role: 'togglefullscreen'
},
{
label: 'Toggle Developer Tools',
]
},
{
- label: 'Window',
role: 'window',
submenu: [
{
- label: 'Minimize',
- accelerator: 'CmdOrCtrl+M',
role: 'minimize'
},
{
- label: 'Close',
- accelerator: 'CmdOrCtrl+W',
role: 'close'
},
]
},
{
- label: 'Help',
role: 'help',
submenu: [
{
label: name,
submenu: [
{
- label: 'About ' + name,
role: 'about'
},
{
type: 'separator'
},
{
- label: 'Services',
role: 'services',
submenu: []
},
type: 'separator'
},
{
- label: 'Hide ' + name,
- accelerator: 'Command+H',
role: 'hide'
},
{
- label: 'Hide Others',
- accelerator: 'Command+Alt+H',
role: 'hideothers'
},
{
- label: 'Show All',
role: 'unhide'
},
{
type: 'separator'
},
{
- label: 'Quit',
- accelerator: 'Command+Q',
- click() { app.quit(); }
+ role: 'quit'
},
]
});