We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Shift + Enter
1 parent a092354 commit bb50b15Copy full SHA for bb50b15
src/components/Search/InputBox.tsx
@@ -276,7 +276,7 @@ export default function ChatInput({
276
setIsDeepThinkActive();
277
};
278
279
- const source = currentAssistant?._source
+ const source = currentAssistant?._source;
280
281
return (
282
<div className={`w-full relative`}>
@@ -302,7 +302,9 @@ export default function ChatInput({
302
}}
303
connected={connected}
304
handleKeyDown={(e: React.KeyboardEvent<HTMLTextAreaElement>) => {
305
- if (e.key !== "Enter") return;
+ const { key, shiftKey } = e;
306
+
307
+ if (key !== "Enter" || shiftKey) return;
308
309
e.preventDefault();
310
handleSubmit();
0 commit comments