diff --git a/Ursa.sln b/Ursa.sln index 695f774..524363d 100644 --- a/Ursa.sln +++ b/Ursa.sln @@ -42,8 +42,8 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "GitHub Action", "GitHub Action", "{66123AC1-7C8C-4AA0-BBDB-5CC3E647A741}" ProjectSection(SolutionItems) = preProject .github\workflows\deploy.yml = .github\workflows\deploy.yml - .github\workflows\pack.yml = .github\workflows\pack.yml .github\workflows\pack-nightly.yml = .github\workflows\pack-nightly.yml + .github\workflows\pack.yml = .github\workflows\pack.yml .github\workflows\publish.yml = .github\workflows\publish.yml .github\workflows\release-tag.yml = .github\workflows\release-tag.yml .github\workflows\test.yml = .github\workflows\test.yml @@ -69,6 +69,7 @@ Global {53B5F277-3AEB-4661-ACAE-15CFFF2ED800}.Release|Any CPU.Build.0 = Release|Any CPU {3FC76CD9-CE5D-4804-A8D6-4E292EB296AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3FC76CD9-CE5D-4804-A8D6-4E292EB296AA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3FC76CD9-CE5D-4804-A8D6-4E292EB296AA}.Debug|Any CPU.Deploy.0 = Debug|Any CPU {3FC76CD9-CE5D-4804-A8D6-4E292EB296AA}.Release|Any CPU.ActiveCfg = Release|Any CPU {3FC76CD9-CE5D-4804-A8D6-4E292EB296AA}.Release|Any CPU.Build.0 = Release|Any CPU {B6BAB821-A9FE-44F3-B9CD-06E27FDB63F6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU diff --git a/src/Package.props b/src/Package.props index 2957fb1..10c01ef 100644 --- a/src/Package.props +++ b/src/Package.props @@ -1,7 +1,7 @@ 1.11.1 - 11.1.1 + 11.1.3 IRIHI Technology Co., Ltd. https://github.com/irihitech/Ursa.Avalonia MIT diff --git a/src/Ursa/Controls/IPv4Box/IPv4Box.cs b/src/Ursa/Controls/IPv4Box/IPv4Box.cs index 41b4f52..5f5f245 100644 --- a/src/Ursa/Controls/IPv4Box/IPv4Box.cs +++ b/src/Ursa/Controls/IPv4Box/IPv4Box.cs @@ -283,11 +283,13 @@ public class IPv4Box: TemplatedControl { if (e.ClickCount == 1) { - _imClient.SetPresenter(presenter); - presenter.ShowCaret(); + _imClient.ShowInputPanel(); + _imClient.SetPresenter(presenter); + presenter.ShowCaret(); _currentActivePresenter = presenter; var caretPosition = position.WithX(position.X - presenter.Bounds.X); presenter.MoveCaretToPoint(caretPosition); + } else if (e.ClickCount == 2) { diff --git a/src/Ursa/Controls/IPv4Box/IPv4BoxInputMethodClient.cs b/src/Ursa/Controls/IPv4Box/IPv4BoxInputMethodClient.cs index 7694170..d15e037 100644 --- a/src/Ursa/Controls/IPv4Box/IPv4BoxInputMethodClient.cs +++ b/src/Ursa/Controls/IPv4Box/IPv4BoxInputMethodClient.cs @@ -2,6 +2,7 @@ using Avalonia; using Avalonia.Controls.Presenters; using Avalonia.Input.TextInput; using Avalonia.Media.TextFormatting; +using Avalonia.VisualTree; using System.Text; namespace Ursa.Controls;