Skip to content

feat: add IME (Input Method Editor) support#48

Open
Touma-Kazusa2 wants to merge 1 commit into
ickshonpe:masterfrom
Touma-Kazusa2:feat/ime-support
Open

feat: add IME (Input Method Editor) support#48
Touma-Kazusa2 wants to merge 1 commit into
ickshonpe:masterfrom
Touma-Kazusa2:feat/ime-support

Conversation

@Touma-Kazusa2

Copy link
Copy Markdown

Add support for IME composition input (Chinese, Japanese, Korean, etc.):
ime_show

  • Add TextInputImeState component to track preedit composition state
  • Add ImePreedit and ImeCommit action types
  • Add ime_focus_system to enable/disable IME and position candidate box
  • Add ime_event_system to route Bevy Ime messages to text inputs
  • Add ime_cleanup_on_unfocus_system to cancel preedit on focus loss
  • Suppress keyboard input during IME composition to prevent double input
  • Render preedit underline beneath composing text (color follows TextColor by default, configurable via TextInputStyle)
  • Use selection-based preedit removal for robustness

Add support for IME composition input (Chinese, Japanese, Korean, etc.):

- Add TextInputImeState component to track preedit composition state
- Add ImePreedit and ImeCommit action types
- Add ime_focus_system to enable/disable IME and position candidate box
- Add ime_event_system to route Bevy Ime messages to text inputs
- Add ime_cleanup_on_unfocus_system to cancel preedit on focus loss
- Suppress keyboard input during IME composition to prevent double input
- Render preedit underline beneath composing text (color follows TextColor
  by default, configurable via TextInputStyle)
- Use selection-based preedit removal for robustness
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.

1 participant