ijklam
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
2 deletions
-
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); |
|
|
|
} |
|
|
|
|