Skip to content

Fix IME client incorrectly handling child control events#591

Open
Timskt wants to merge 1 commit into
AvaloniaUI:masterfrom
Timskt:fix-ime-child-control
Open

Fix IME client incorrectly handling child control events#591
Timskt wants to merge 1 commit into
AvaloniaUI:masterfrom
Timskt:fix-ime-child-control

Conversation

@Timskt

@Timskt Timskt commented May 28, 2026

Copy link
Copy Markdown

Summary

The TextInputMethodClientRequestedEvent handler in TextArea was capturing events from child controls (e.g. search TextBox), preventing them from properly setting up their own IME clients.

This fix adds an e.Source == ta check to only handle IME for the TextArea itself, matching the behavior expected when child controls like the search panel's TextBox need independent IME support.

Changes

  • TextArea.cs: Added e.Source == ta condition to the TextInputMethodClientRequestedEvent handler

Related

Test plan

  • Verify IME input works correctly in the main TextArea
  • Verify IME input works correctly in the search TextBox (child control)
  • Verify no regressions in text input handling

The TextInputMethodClientRequestedEvent handler was capturing events
from child controls (e.g. search TextBox), preventing them from
properly setting up their own IME clients. Add an e.Source == ta
check to only handle IME for the TextArea itself.

Fixes the issue described in AvaloniaUI#532.
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