mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-19 05:48:17 +00:00
fix: 🐛 增加剪切快捷键
This commit is contained in:
parent
3ca6830834
commit
a73a82e063
@ -58,14 +58,15 @@ hotkey.bind(['command+c', 'ctrl+c', 'command+x', 'ctrl+x'], (e, action) => {
|
|||||||
const data = { type: 'nodeSchema', componentsMap, componentsTree };
|
const data = { type: 'nodeSchema', componentsMap, componentsTree };
|
||||||
|
|
||||||
clipboard.setData(data);
|
clipboard.setData(data);
|
||||||
/*
|
|
||||||
const cutMode = action.indexOf('x') > 0;
|
const cutMode = action.indexOf('x') > 0;
|
||||||
if (cutMode) {
|
if (cutMode) {
|
||||||
const parentNode = selected.getParent();
|
selected.forEach((node) => {
|
||||||
parentNode.select();
|
const parentNode = node.getParent();
|
||||||
selected.remove();
|
parentNode?.select();
|
||||||
|
node.remove();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// command + v paste
|
// command + v paste
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user