Skip to content

Commit 3cec449

Browse files
mosaxivicecrasher321waleedlatif1
authored
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 <[email protected]> Co-authored-by: Waleed <[email protected]> Co-authored-by: waleedlatif1 <[email protected]>
1 parent c5b3fcb commit 3cec449

File tree

2 files changed

+4
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/user-input

2 files changed

+4
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ start-collector.sh
6767
# VSCode
6868
.vscode
6969

70+
# IntelliJ
71+
.idea
72+
7073
## Helm Chart Tests
7174
helm/sim/test
7275
i18n.cache

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/copilot/components/user-input/user-input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ const UserInput = forwardRef<UserInputRef, UserInputProps>(
391391
if (mentionKeyboard.handleArrowLeft(e)) return
392392

393393
// Enter key handling
394-
if (e.key === 'Enter' && !e.shiftKey) {
394+
if (e.key === 'Enter' && !e.shiftKey && !e.nativeEvent.isComposing) {
395395
e.preventDefault()
396396
if (!mentionMenu.showMentionMenu) {
397397
handleSubmit()

0 commit comments

Comments
 (0)