From c7e96edc40ce16220a2c42e753c71a537631ee92 Mon Sep 17 00:00:00 2001 From: Taylor Ho Date: Fri, 17 Apr 2026 07:10:26 -1000 Subject: [PATCH] fix: guard Escape key against IME composition in inline edit Signed-off-by: Taylor Ho --- ui/goose2/src/features/chat/ui/MessageBubble.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/goose2/src/features/chat/ui/MessageBubble.tsx b/ui/goose2/src/features/chat/ui/MessageBubble.tsx index 59ffad069c..d6bbe96796 100644 --- a/ui/goose2/src/features/chat/ui/MessageBubble.tsx +++ b/ui/goose2/src/features/chat/ui/MessageBubble.tsx @@ -379,7 +379,7 @@ export const MessageBubble = memo(function MessageBubble({ const handleEditKeyDown = useCallback( (e: React.KeyboardEvent) => { - if (e.key === "Escape") { + if (e.key === "Escape" && !e.nativeEvent.isComposing) { e.preventDefault(); onCancelEdit?.(); } else if (e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing) {