Skip to content

Fix Japanese IME input handling for tag, step, and reaction fields#1984

Merged
flavorjones merged 1 commit intobasecamp:mainfrom
gijigae:fix/japanese-ime-input
Dec 8, 2025
Merged

Fix Japanese IME input handling for tag, step, and reaction fields#1984
flavorjones merged 1 commit intobasecamp:mainfrom
gijigae:fix/japanese-ime-input

Conversation

@gijigae
Copy link
Contributor

@gijigae gijigae commented Dec 6, 2025

When typing in Japanese, the Enter key is used to confirm kanji conversion during IME composition. Previously, pressing Enter would immediately save the tag, which caused creating unintended tags. It addresses #1959.

Changes:

  • Add isComposing check to navigable_list_controller.js Enter handler
  • Add IME composition tracking to form_controller.js
  • Add compositionstart/compositionend event handlers to tag, step, and reaction input fields
  • Add preventComposingSubmit action to prevent form submission during composition

When typing in Japanese, the Enter key is used to confirm kanji conversion
during IME composition. Previously, pressing Enter would immediately save
the tag, which prevented users from completing the conversion.

Changes:
- Add isComposing check to navigable_list_controller.js Enter handler
- Add IME composition tracking to form_controller.js
- Add compositionstart/compositionend event handlers to tag, step, and
  reaction input fields
- Add preventComposingSubmit action to prevent form submission during
  composition

This fix supports all IME input methods (Japanese, Chinese, Korean, etc.)
using standard browser composition events.
@gijigae
Copy link
Contributor Author

gijigae commented Dec 8, 2025

@flavorjones , would you please review the changes or assign someone else for the review?

@flavorjones
Copy link
Member

@gijigae Thanks! Someone will take a look this week.

Copy link
Member

@flavorjones flavorjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks to @GabManette for testing this out!

@flavorjones flavorjones merged commit 63805ae into basecamp:main Dec 8, 2025
4 checks passed
@gijigae
Copy link
Contributor Author

gijigae commented Dec 9, 2025

Thank you both of you, @flavorjones and @GabManette, for reviewing and testing the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants