We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60a2122 commit 1ef4d5eCopy full SHA for 1ef4d5e
components/Chat.tsx
@@ -28,7 +28,7 @@ const InputMessage = ({
28
className='min-w-0 flex-auto appearance-none rounded-md border border-zinc-900/10 bg-white px-3 py-[calc(theme(spacing.2)-1px)] shadow-md shadow-zinc-800/5 placeholder:text-zinc-400 focus:border-teal-500 focus:outline-none focus:ring-4 focus:ring-teal-500/10 sm:text-sm'
29
value={input}
30
onKeyDown={(e) => {
31
- if (e.key === "Enter") {
+ if (e.key === "Enter" && e.ctrlKey) {
32
sendMessage(input);
33
setInput("");
34
}
0 commit comments