From a3d14e5a315b7456e8b55eea31c5ba3bdc754832 Mon Sep 17 00:00:00 2001 From: Dong Bin Date: Mon, 13 Jan 2025 14:22:01 +0800 Subject: [PATCH] feat: request ime upon pointer press. --- src/Ursa/Controls/IPv4Box/IPv4Box.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Ursa/Controls/IPv4Box/IPv4Box.cs b/src/Ursa/Controls/IPv4Box/IPv4Box.cs index 4a41b70..d79d155 100644 --- a/src/Ursa/Controls/IPv4Box/IPv4Box.cs +++ b/src/Ursa/Controls/IPv4Box/IPv4Box.cs @@ -281,6 +281,13 @@ public class IPv4Box: TemplatedControl { if (presenter?.Bounds.Contains(position)??false) { + _imClient.SetPresenter(presenter, this); + RaiseEvent(new TextInputMethodClientRequestedEventArgs() + { + Source = presenter, + Client = _imClient, + RoutedEvent = InputElement.TextInputMethodClientRequestedEvent, + }); if (e.ClickCount == 1) { presenter.ShowCaret();