From 3cec449402846d300b8d20e9c6c8296d84553264 Mon Sep 17 00:00:00 2001 From: mosa Date: Wed, 10 Dec 2025 12:58:33 +0900 Subject: [PATCH] fix(ime): prevent form submission during IME composition steps (#2279) * fix(ui): prevent form submission during IME composition steps * chore(gitignore): add IntelliJ IDE files to .gitignore --------- Co-authored-by: Vikhyath Mondreti Co-authored-by: Waleed Co-authored-by: waleedlatif1 --- .gitignore | 3 +++ .../components/copilot/components/user-input/user-input.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d5fa99e48..6617532dd 100644 --- a/.gitignore +++ b/.gitignore @@ -67,6 +67,9 @@ start-collector.sh # VSCode .vscode +# IntelliJ +.idea + ## Helm Chart Tests helm/sim/test i18n.cache diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/user-input/user-input.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/user-input/user-input.tsx index 801882ef2..e222fec62 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/user-input/user-input.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/user-input/user-input.tsx @@ -391,7 +391,7 @@ const UserInput = forwardRef( if (mentionKeyboard.handleArrowLeft(e)) return // Enter key handling - if (e.key === 'Enter' && !e.shiftKey) { + if (e.key === 'Enter' && !e.shiftKey && !e.nativeEvent.isComposing) { e.preventDefault() if (!mentionMenu.showMentionMenu) { handleSubmit()