Add "Edit" menu in specs window.
This commit is contained in:
parent
c8d0968e00
commit
a2aa20b6b2
1 changed files with 44 additions and 6 deletions
50
spec/main.js
50
spec/main.js
|
@ -53,16 +53,40 @@ app.on('finish-launching', function() {
|
|||
],
|
||||
},
|
||||
{
|
||||
label: 'Window',
|
||||
label: 'Edit',
|
||||
submenu: [
|
||||
{
|
||||
label: 'Open',
|
||||
accelerator: 'CommandOrControl+O',
|
||||
label: 'Undo',
|
||||
accelerator: 'CommandOrControl+Z',
|
||||
selector: 'undo:',
|
||||
},
|
||||
{
|
||||
label: 'Close',
|
||||
accelerator: 'CommandOrControl+W',
|
||||
click: function(item, window) { window.close(); }
|
||||
label: 'Redo',
|
||||
accelerator: 'CommandOrControl+Shift+Z',
|
||||
selector: 'redo:',
|
||||
},
|
||||
{
|
||||
type: 'separator',
|
||||
},
|
||||
{
|
||||
label: 'Cut',
|
||||
accelerator: 'CommandOrControl+X',
|
||||
selector: 'cut:',
|
||||
},
|
||||
{
|
||||
label: 'Copy',
|
||||
accelerator: 'CommandOrControl+C',
|
||||
selector: 'copy:',
|
||||
},
|
||||
{
|
||||
label: 'Paste',
|
||||
accelerator: 'CommandOrControl+V',
|
||||
selector: 'paste:',
|
||||
},
|
||||
{
|
||||
label: 'Select All',
|
||||
accelerator: 'CommandOrControl+A',
|
||||
selector: 'selectAll:',
|
||||
},
|
||||
]
|
||||
},
|
||||
|
@ -85,6 +109,20 @@ app.on('finish-launching', function() {
|
|||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
label: 'Window',
|
||||
submenu: [
|
||||
{
|
||||
label: 'Open',
|
||||
accelerator: 'CommandOrControl+O',
|
||||
},
|
||||
{
|
||||
label: 'Close',
|
||||
accelerator: 'CommandOrControl+W',
|
||||
click: function(item, window) { window.close(); }
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
label: 'Help',
|
||||
submenu: [],
|
||||
|
|
Loading…
Reference in a new issue