Ensure capitalization is restored when current text is deleted (Fix #56)

This commit is contained in:
Stefano Ottolenghi 2020-09-07 17:54:31 +02:00
parent a6d7e2d3ac
commit a3ad8a83ce

View file

@ -1376,6 +1376,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
public void onUpWithDeletePointerActive() {
if (mInputLogic.mConnection.hasSelection()) {
mInputLogic.sendDownUpKeyEvent(KeyEvent.KEYCODE_DEL);
mInputLogic.sendDownUpKeyEvent(KeyEvent.KEYCODE_SHIFT_LEFT);
cleanupInternalStateForFinishInput();
}
}