mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-06 21:54:01 -05:00
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 <vikhyathvikku@gmail.com> Co-authored-by: Waleed <walif6@gmail.com> Co-authored-by: waleedlatif1 <waleedlatif1@users.noreply.github.com>
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -67,6 +67,9 @@ start-collector.sh
|
|||||||
# VSCode
|
# VSCode
|
||||||
.vscode
|
.vscode
|
||||||
|
|
||||||
|
# IntelliJ
|
||||||
|
.idea
|
||||||
|
|
||||||
## Helm Chart Tests
|
## Helm Chart Tests
|
||||||
helm/sim/test
|
helm/sim/test
|
||||||
i18n.cache
|
i18n.cache
|
||||||
|
|||||||
@@ -391,7 +391,7 @@ const UserInput = forwardRef<UserInputRef, UserInputProps>(
|
|||||||
if (mentionKeyboard.handleArrowLeft(e)) return
|
if (mentionKeyboard.handleArrowLeft(e)) return
|
||||||
|
|
||||||
// Enter key handling
|
// Enter key handling
|
||||||
if (e.key === 'Enter' && !e.shiftKey) {
|
if (e.key === 'Enter' && !e.shiftKey && !e.nativeEvent.isComposing) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
if (!mentionMenu.showMentionMenu) {
|
if (!mentionMenu.showMentionMenu) {
|
||||||
handleSubmit()
|
handleSubmit()
|
||||||
|
|||||||
Reference in New Issue
Block a user