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 94c97e29c7..00340db30b 100644 --- a/frontend/src/components/pure/ms-minder-editor/hooks/useShortCut.ts +++ b/frontend/src/components/pure/ms-minder-editor/hooks/useShortCut.ts @@ -98,6 +98,10 @@ export default function useShortCut(shortcuts: Shortcuts, options: MinderOperati }; const handleShortcutInput = (event: KeyboardEvent) => { + if ((event.target as HTMLElement)?.tagName?.toLowerCase() === 'input') { + // 输入框中不响应快捷键 + return; + } const { editor } = window; const { fsm } = editor; const state = fsm.state();