mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-27 05:17:47 +08:00
Feat:支持insert键插入下级节点
This commit is contained in:
parent
4c7dafe94e
commit
1085473463
@ -290,6 +290,10 @@ class Render {
|
||||
this.mindMap.keyCommand.addShortcut('Tab', () => {
|
||||
this.mindMap.execCommand('INSERT_CHILD_NODE')
|
||||
})
|
||||
// 插入下级节点
|
||||
this.mindMap.keyCommand.addShortcut('Insert', () => {
|
||||
this.mindMap.execCommand('INSERT_CHILD_NODE')
|
||||
})
|
||||
// 插入同级节点
|
||||
this.mindMap.keyCommand.addShortcut('Enter', () => {
|
||||
this.mindMap.execCommand('INSERT_NODE')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user