fix: remove useless code in IPBox IME.
This commit is contained in:
@@ -7,25 +7,18 @@ namespace Ursa.Controls;
|
||||
public class IPv4BoxInputMethodClient: TextInputMethodClient
|
||||
{
|
||||
private TextPresenter? _presenter;
|
||||
public override Visual TextViewVisual => _presenter;
|
||||
public override Visual TextViewVisual => _presenter!;
|
||||
public override bool SupportsPreedit => false;
|
||||
public override bool SupportsSurroundingText => true;
|
||||
|
||||
public override string SurroundingText
|
||||
{
|
||||
get;
|
||||
}
|
||||
public override Rect CursorRectangle { get; }
|
||||
public override string SurroundingText { get; } = null!;
|
||||
|
||||
public override Rect CursorRectangle { get; } = new();
|
||||
public override TextSelection Selection { get; set; }
|
||||
private IPv4Box? _parent;
|
||||
public void SetPresenter(TextPresenter? presenter)
|
||||
{
|
||||
_presenter = presenter;
|
||||
this.RaiseTextViewVisualChanged();
|
||||
this.RaiseCursorRectangleChanged();
|
||||
}
|
||||
|
||||
private void OnParentPropertyChanged(object? sender, AvaloniaPropertyChangedEventArgs e)
|
||||
{
|
||||
this.RaiseSelectionChanged();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user