From a9b4b195bf1fef5bfa42f3ffade8dfcb899a0fd9 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Mon, 12 Jan 2026 03:37:02 -0800 Subject: [PATCH] Extend #916 to InlineTextArea and editing of a Text Fragment --- .../message/fragments-content/BlockEdit_TextFragment.tsx | 2 ++ src/common/components/InlineTextarea.tsx | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/apps/chat/components/message/fragments-content/BlockEdit_TextFragment.tsx b/src/apps/chat/components/message/fragments-content/BlockEdit_TextFragment.tsx index b4b64c2d8..d09e62b73 100644 --- a/src/apps/chat/components/message/fragments-content/BlockEdit_TextFragment.tsx +++ b/src/apps/chat/components/message/fragments-content/BlockEdit_TextFragment.tsx @@ -96,6 +96,8 @@ export function BlockEdit_TextFragment(props: { const handleEditKeyDown = React.useCallback((e: React.KeyboardEvent) => { if (e.key === 'Enter') { + if (e.nativeEvent.isComposing) + return; const withControl = e.ctrlKey; if (enterIsNewline ? e.shiftKey : !e.shiftKey) { e.preventDefault(); diff --git a/src/common/components/InlineTextarea.tsx b/src/common/components/InlineTextarea.tsx index e0ae95fc7..48e659a03 100644 --- a/src/common/components/InlineTextarea.tsx +++ b/src/common/components/InlineTextarea.tsx @@ -40,6 +40,8 @@ export function InlineTextarea(props: { const handleEditKeyDown = (e: React.KeyboardEvent) => { if (e.key === 'Enter') { + if (e.nativeEvent.isComposing) + return; const shiftOrAlt = e.shiftKey || e.altKey; if (enterIsNewline ? shiftOrAlt : !shiftOrAlt) { e.preventDefault();