From 8c79471a45a8d92b4ca597c28d0370ed1d08bf1a Mon Sep 17 00:00:00 2001 From: Timskt <1149177967@qq.com> Date: Fri, 29 May 2026 00:29:00 +0800 Subject: [PATCH] Fix IME client incorrectly handling child control events 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 #532. --- src/AvaloniaEdit/Editing/TextArea.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/AvaloniaEdit/Editing/TextArea.cs b/src/AvaloniaEdit/Editing/TextArea.cs index 286c9485..d4c5ce31 100644 --- a/src/AvaloniaEdit/Editing/TextArea.cs +++ b/src/AvaloniaEdit/Editing/TextArea.cs @@ -68,7 +68,8 @@ static TextArea() TextInputMethodClientRequestedEvent.AddClassHandler