复制粘贴节点

This commit is contained in:
zhandouxiaojiji committed 2020-11-11 10:46:38 +08:00
1 parent 0c5d62157b
commit f0b785a168
4 files changed
+64 -1

No files matched your search

+16
View File
@@ -117,6 +117,22 @@ export default class AppMenu {
this.webContents.send(MainEventType.DELETE_NODE);
}
},
{ type: 'separator' },
{
label: '复制节点',
accelerator: 'ctrl+shift+c',
role: 'copy',
click: () => {
this.webContents.send(MainEventType.COPY_NODE);
}
},
{
label: '粘贴节点',
accelerator: 'ctrl+shift+v',
click: () => {
this.webContents.send(MainEventType.PASTE_NODE);
}
}
]
});
}