Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/go/components/chat/chat-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ export function ChatInput({ onSend, disabled, className, agents = [], draft, onD
};

const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
// Ignore Enter during IME composition (Chinese, Japanese, Korean input)
if (e.nativeEvent.isComposing || e.key === 'Process') return;

if (showMentions && filteredAgents.length > 0) {
if (e.key === 'ArrowDown') {
e.preventDefault();
Expand Down
3 changes: 3 additions & 0 deletions sdk/studio/src/pages/messaging/components/MessageInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,9 @@ const MessageInput: React.FC<MessageInputProps> = ({
}

const handleKeyDown = (e: React.KeyboardEvent) => {
// Ignore Enter during IME composition (Chinese, Japanese, Korean input)
if (e.nativeEvent.isComposing || e.key === 'Process') return;

// Handle mention navigation
if (showMentions && filteredAgents.length > 0) {
if (e.key === "ArrowDown") {
Expand Down
3 changes: 3 additions & 0 deletions workspace/frontend/components/chat/chat-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ export function ChatInput({ onSend, disabled, className, agents = [], draft, onD
};

const handleKeyDown = (e: React.KeyboardEvent<HTMLTextAreaElement>) => {
// Ignore Enter during IME composition (Chinese, Japanese, Korean input)
if (e.nativeEvent.isComposing || e.key === 'Process') return;

if (showMentions && filteredAgents.length > 0) {
if (e.key === 'ArrowDown') {
e.preventDefault();
Expand Down
Loading