finish input before swiping

This commit is contained in:
dslul 2020-09-08 13:48:14 +02:00
parent 64325a9e6f
commit b6c0476f0c

View file

@ -1374,6 +1374,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
@Override @Override
public void onMoveDeletePointer(int steps) { public void onMoveDeletePointer(int steps) {
mInputLogic.finishInput();
int end = mInputLogic.mConnection.getExpectedSelectionEnd(); int end = mInputLogic.mConnection.getExpectedSelectionEnd();
int start = mInputLogic.mConnection.getExpectedSelectionStart() + steps; int start = mInputLogic.mConnection.getExpectedSelectionStart() + steps;
if (start > end) if (start > end)