Feat:支持insert键插入下级节点
This commit is contained in:
parent
4c7dafe94e
commit
1085473463
@ -290,6 +290,10 @@ class Render {
|
|||||||
this.mindMap.keyCommand.addShortcut('Tab', () => {
|
this.mindMap.keyCommand.addShortcut('Tab', () => {
|
||||||
this.mindMap.execCommand('INSERT_CHILD_NODE')
|
this.mindMap.execCommand('INSERT_CHILD_NODE')
|
||||||
})
|
})
|
||||||
|
// 插入下级节点
|
||||||
|
this.mindMap.keyCommand.addShortcut('Insert', () => {
|
||||||
|
this.mindMap.execCommand('INSERT_CHILD_NODE')
|
||||||
|
})
|
||||||
// 插入同级节点
|
// 插入同级节点
|
||||||
this.mindMap.keyCommand.addShortcut('Enter', () => {
|
this.mindMap.keyCommand.addShortcut('Enter', () => {
|
||||||
this.mindMap.execCommand('INSERT_NODE')
|
this.mindMap.execCommand('INSERT_NODE')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user