diff --git a/src/frontend/src/components/core/playgroundComponent/chat-view/chat-input/components/input-wrapper.tsx b/src/frontend/src/components/core/playgroundComponent/chat-view/chat-input/components/input-wrapper.tsx index 5b2a38a0c2..1895c359e0 100644 --- a/src/frontend/src/components/core/playgroundComponent/chat-view/chat-input/components/input-wrapper.tsx +++ b/src/frontend/src/components/core/playgroundComponent/chat-view/chat-input/components/input-wrapper.tsx @@ -68,6 +68,11 @@ const InputWrapper = ({ }; const onKeyDown = (e: React.KeyboardEvent) => { + const target = e.target as HTMLElement; + // Don't handle keyboard events that originate from the textarea + if (target.closest("textarea")) { + return; + } if (e.key !== "Enter" && e.key !== " ") { return; }