diff --git a/src/components/Chat/ChatContent/Message/MessageContent.tsx b/src/components/Chat/ChatContent/Message/MessageContent.tsx index 28755bc..2364b2e 100644 --- a/src/components/Chat/ChatContent/Message/MessageContent.tsx +++ b/src/components/Chat/ChatContent/Message/MessageContent.tsx @@ -342,7 +342,12 @@ const EditView = ({ }; const handleKeyDown = (e: React.KeyboardEvent) => { - if (e.key === 'Enter') { + const isMobile = + /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|playbook|silk/i.test( + navigator.userAgent + ); + + if (e.key === 'Enter' && !isMobile) { const enterToSubmit = useStore.getState().enterToSubmit; if (sticky) { if (