fix(脑图): 功能用例脑图复制快捷键与创建同级用例键冲突解决

This commit is contained in:
baiqi 2024-09-18 17:39:26 +08:00 committed by Craftsman
parent 429b4ea23c
commit e29704e89b
1 changed files with 4 additions and 2 deletions

View File

@ -77,9 +77,11 @@ export default function useShortCut(shortcuts: Shortcuts, options: MinderOperati
let action; let action;
if (isCtrlOrCmd && combinationShortcuts[key]) { if (isCtrlOrCmd) {
// 执行组合键事件 // 执行组合键事件
if (combinationShortcuts[key]) {
action = combinationShortcuts[key]; action = combinationShortcuts[key];
}
} else if (isShift && shiftCombinationShortcuts[key]) { } else if (isShift && shiftCombinationShortcuts[key]) {
// 执行 shift 组合键事件 // 执行 shift 组合键事件
action = shiftCombinationShortcuts[key]; action = shiftCombinationShortcuts[key];