diff --git a/simple-mind-map/src/core/command/KeyCommand.js b/simple-mind-map/src/core/command/KeyCommand.js
index 2e8d7049..9997bd77 100644
--- a/simple-mind-map/src/core/command/KeyCommand.js
+++ b/simple-mind-map/src/core/command/KeyCommand.js
@@ -16,6 +16,18 @@ export default class KeyCommand {
this.bindEvent()
}
+ // 扩展按键映射
+ extendKeyMap(key, code) {
+ keyMap[key] = code
+ }
+
+ // 从按键映射中删除某个键
+ removeKeyMap(key) {
+ if (typeof keyMap[key] !== 'undefined') {
+ delete keyMap[key]
+ }
+ }
+
// 暂停快捷键响应
pause() {
this.isPause = true
diff --git a/web/src/pages/Edit/components/Edit.vue b/web/src/pages/Edit/components/Edit.vue
index 7545a0c6..2a71e270 100644
--- a/web/src/pages/Edit/components/Edit.vue
+++ b/web/src/pages/Edit/components/Edit.vue
@@ -17,7 +17,10 @@
-
+
@@ -123,7 +126,7 @@ import NodeAttachment from './NodeAttachment.vue'
import NodeOuterFrame from './NodeOuterFrame.vue'
import NodeTagStyle from './NodeTagStyle.vue'
import Setting from './Setting.vue'
-import AssociativeLineStyle from './AssociativeLineStyle.vue';
+import AssociativeLineStyle from './AssociativeLineStyle.vue'
// 注册插件
MindMap.usePlugin(MiniMap)