diff options
| author | Pelps12 <[email protected]> | 2024-04-18 15:02:16 -0500 |
|---|---|---|
| committer | Pelps12 <[email protected]> | 2024-04-18 15:02:16 -0500 |
| commit | f7b1341b30855ec9b11762035af2845f3e4699d6 (patch) | |
| tree | 23b73d7503135c65d8f694fc59e492391dfcaa31 /apps/web/src/components | |
| parent | switch back to gemini (diff) | |
| download | supermemory-f7b1341b30855ec9b11762035af2845f3e4699d6.tar.xz supermemory-f7b1341b30855ec9b11762035af2845f3e4699d6.zip | |
Change "Enter" submit logic
Diffstat (limited to 'apps/web/src/components')
| -rw-r--r-- | apps/web/src/components/Main.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/web/src/components/Main.tsx b/apps/web/src/components/Main.tsx index b088b9f9..64650efd 100644 --- a/apps/web/src/components/Main.tsx +++ b/apps/web/src/components/Main.tsx @@ -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(); } }, |