Add "Edit" menu in specs window.

This commit is contained in:
Cheng Zhao 2013-11-29 16:21:43 +08:00
parent c8d0968e00
commit a2aa20b6b2

View file

@ -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: [],