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 = [
33
33
}
34
34
]
35
35
} ,
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
+ } ,
36
74
{
37
75
label : '运行' ,
38
76
submenu : [
@@ -190,4 +228,3 @@ if (process.platform == 'darwin') {
190
228
191
229
var menu = Menu . buildFromTemplate ( template ) ;
192
230
Menu . setApplicationMenu ( menu ) ;
193
-
You can’t perform that action at this time.
0 commit comments