feat: try to fix re-focus issue.
This commit is contained in:
@@ -281,15 +281,9 @@ 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)
|
||||
{
|
||||
_imClient.SetPresenter(presenter);
|
||||
presenter.ShowCaret();
|
||||
_currentActivePresenter = presenter;
|
||||
var caretPosition = position.WithX(position.X - presenter.Bounds.X);
|
||||
|
||||
Reference in New Issue
Block a user