mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-07 08:26:15 +00:00
fix: enter key creates new line on mobile instead of sending message
This commit is contained in:
parent
1d21871f2e
commit
31970edc6b
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue