Skip to content

Commit

Permalink
fix (#15605)
Browse files Browse the repository at this point in the history
  • Loading branch information
ijklam authored May 6, 2024
1 parent cddda52 commit 0d4fbe1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,10 @@ public override bool SetComposingText(ICharSequence? text, int newCursorPosition
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);
}
Expand Down

0 comments on commit 0d4fbe1

Please sign in to comment.