feat: add ime fix in new version.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user