diff --git a/frontend/src/components/InputForm.tsx b/frontend/src/components/InputForm.tsx index 6f3127c3..70c658fd 100644 --- a/frontend/src/components/InputForm.tsx +++ b/frontend/src/components/InputForm.tsx @@ -35,10 +35,9 @@ export const InputForm: React.FC = ({ setInternalInputValue(""); }; - const handleInternalKeyDown = ( - e: React.KeyboardEvent - ) => { - if (e.key === "Enter" && !e.shiftKey) { + const handleKeyDown = (e: React.KeyboardEvent) => { + // Submit with Ctrl+Enter (Windows/Linux) or Cmd+Enter (Mac) + if (e.key === "Enter" && (e.ctrlKey || e.metaKey)) { e.preventDefault(); handleInternalSubmit(); } @@ -59,9 +58,9 @@ export const InputForm: React.FC = ({