fix: enter key creates new line on mobile instead of sending message

This commit is contained in:
Vorflux AI 2026-06-01 00:08:14 +00:00
parent 1d21871f2e
commit 31970edc6b

View file

@ -364,7 +364,7 @@ export function ChatSidebar({
)
const handleKeyDown = (e: React.KeyboardEvent) => {
if (e.key === "Enter" && !e.shiftKey) {
if (e.key === "Enter" && !e.shiftKey && !isMobile) {
e.preventDefault()
handleSend()
}