mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-14 23:21:20 +00:00
Change "Enter" submit logic
This commit is contained in:
parent
51d6c6c002
commit
f7b1341b30
1 changed files with 2 additions and 2 deletions
|
|
@ -388,7 +388,7 @@ export default function Main({ sidebarOpen }: { sidebarOpen: boolean }) {
|
|||
autoFocus: true,
|
||||
onChange: (e) => setValue(e.target.value),
|
||||
onKeyDown: (e) => {
|
||||
if (e.key === "Enter" && (e.ctrlKey || e.metaKey)) {
|
||||
if (e.key === "Enter" && !e.shiftKey) {
|
||||
onSend();
|
||||
}
|
||||
},
|
||||
|
|
@ -507,7 +507,7 @@ export function Chat({
|
|||
autoFocus: true,
|
||||
onChange: onValueChange,
|
||||
onKeyDown: (e) => {
|
||||
if (e.key === "Enter" && (e.ctrlKey || e.metaKey)) {
|
||||
if (e.key === "Enter" && !e.shiftKey) {
|
||||
askQuestion();
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue