diff --git a/ui/src/components/MessageInput.tsx b/ui/src/components/MessageInput.tsx index fc3e545e0bf50ff43eeeb2950e04531cd6f463a7..416883fed48b713603edef36d5c67e6179cea02d 100644 --- a/ui/src/components/MessageInput.tsx +++ b/ui/src/components/MessageInput.tsx @@ -309,6 +309,13 @@ function MessageInput({ return; } if (e.key === "Enter" && !e.shiftKey) { + // On mobile, let Enter create newlines since there's a send button + // I'm not convinced the divergence from desktop is the correct answer, + // but we can try it and see how it feels. + const isMobile = "ontouchstart" in window; + if (isMobile) { + return; + } e.preventDefault(); handleSubmit(e); }