From e5ba0d8ca3180a8b3e1c7fcc31bd159389a791cf Mon Sep 17 00:00:00 2001 From: Dhravya Date: Thu, 4 Jul 2024 13:34:10 -0500 Subject: [PATCH] enter to submit, shift newline --- apps/web/app/(dash)/home/queryinput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/app/(dash)/home/queryinput.tsx b/apps/web/app/(dash)/home/queryinput.tsx index 697dc7f9..2c4b6533 100644 --- a/apps/web/app/(dash)/home/queryinput.tsx +++ b/apps/web/app/(dash)/home/queryinput.tsx @@ -80,7 +80,7 @@ function QueryInput({ className="bg-transparent pt-2.5 text-base placeholder:text-[#9B9B9B] focus:text-gray-200 duration-200 tracking-[3%] outline-none resize-none w-full p-4" placeholder="Ask your second brain..." onKeyDown={(e) => { - if (e.key === "Enter") { + if (e.key === "Enter" && !e.shiftKey) { e.preventDefault(); handleSubmit(q, preparedSpaces); setQ("");