File tree Expand file tree Collapse file tree 1 file changed +38
-1
lines changed
Expand file tree Collapse file tree 1 file changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,44 @@ var template = [
3333 }
3434 ]
3535 } ,
36+ {
37+ label : '编辑' ,
38+ submenu : [
39+ {
40+ label : '撤销' ,
41+ accelerator : 'CmdOrCtrl+Z' ,
42+ role : 'undo'
43+ } ,
44+ {
45+ label : '重做' ,
46+ accelerator : 'Shift+CmdOrCtrl+Z' ,
47+ role : 'redo'
48+ } ,
49+ {
50+ type : 'separator'
51+ } ,
52+ {
53+ label : '剪切' ,
54+ accelerator : 'CmdOrCtrl+X' ,
55+ role : 'cut'
56+ } ,
57+ {
58+ label : '复制' ,
59+ accelerator : 'CmdOrCtrl+C' ,
60+ role : 'copy'
61+ } ,
62+ {
63+ label : '粘贴' ,
64+ accelerator : 'CmdOrCtrl+V' ,
65+ role : 'paste'
66+ } ,
67+ {
68+ label : '全选' ,
69+ accelerator : 'CmdOrCtrl+A' ,
70+ role : 'selectall'
71+ }
72+ ]
73+ } ,
3674 {
3775 label : '运行' ,
3876 submenu : [
@@ -191,4 +229,3 @@ if (process.platform == 'darwin') {
191229
192230var menu = Menu . buildFromTemplate ( template ) ;
193231Menu . setApplicationMenu ( menu ) ;
194-
You can’t perform that action at this time.
0 commit comments