diff --git a/src/components/editor/MentionEditor.tsx b/src/components/editor/MentionEditor.tsx index 105e336..13af7d6 100644 --- a/src/components/editor/MentionEditor.tsx +++ b/src/components/editor/MentionEditor.tsx @@ -216,8 +216,11 @@ export const MentionEditor = forwardRef< "prose prose-sm max-w-none focus:outline-none min-h-[2rem] px-3 py-1.5", }, handleKeyDown: (view, event) => { - // Submit on Enter (without Shift) - if (event.key === "Enter" && !event.shiftKey) { + // Submit on Enter (without Shift) or Ctrl/Cmd+Enter + if ( + event.key === "Enter" && + (!event.shiftKey || event.ctrlKey || event.metaKey) + ) { event.preventDefault(); // Get editor from view state const editorInstance = (view as any).editor;