diff --git a/frontend/src/components/pure/ms-minder-editor/hooks/useShortCut.ts b/frontend/src/components/pure/ms-minder-editor/hooks/useShortCut.ts index 09e6ef4a57..dbff8fb0f8 100644 --- a/frontend/src/components/pure/ms-minder-editor/hooks/useShortCut.ts +++ b/frontend/src/components/pure/ms-minder-editor/hooks/useShortCut.ts @@ -77,9 +77,11 @@ export default function useShortCut(shortcuts: Shortcuts, options: MinderOperati let action; - if (isCtrlOrCmd && combinationShortcuts[key]) { + if (isCtrlOrCmd) { // 执行组合键事件 - action = combinationShortcuts[key]; + if (combinationShortcuts[key]) { + action = combinationShortcuts[key]; + } } else if (isShift && shiftCombinationShortcuts[key]) { // 执行 shift 组合键事件 action = shiftCombinationShortcuts[key];