aboutsummaryrefslogtreecommitdiff
path: root/apps/web/src/components
diff options
context:
space:
mode:
authorPelps12 <[email protected]>2024-04-18 15:02:16 -0500
committerPelps12 <[email protected]>2024-04-18 15:02:16 -0500
commitf7b1341b30855ec9b11762035af2845f3e4699d6 (patch)
tree23b73d7503135c65d8f694fc59e492391dfcaa31 /apps/web/src/components
parentswitch back to gemini (diff)
downloadsupermemory-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.tsx4
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();
}
},