Browse Source

fix (#15605)

pull/15640/head
ijklam 2 years ago
committed by GitHub
parent
commit
0d4fbe1880
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      src/Android/Avalonia.Android/Platform/SkiaPlatform/TopLevelImpl.cs

6
src/Android/Avalonia.Android/Platform/SkiaPlatform/TopLevelImpl.cs

@ -532,8 +532,10 @@ namespace Avalonia.Android.Platform.SkiaPlatform
if (_inputMethod.IsActive && !_commitInProgress)
{
if (string.IsNullOrEmpty(compositionText))
_inputMethod.View.DispatchKeyEvent(new KeyEvent(KeyEventActions.Down, Keycode.ForwardDel));
{
if (_editable.CurrentComposition.Start > -1)
_inputMethod.View.DispatchKeyEvent(new KeyEvent(KeyEventActions.Down, Keycode.ForwardDel));
}
else
_toplevel.TextInput(compositionText);
}

Loading…
Cancel
Save