diff options
author | 2013-08-14 09:29:15 +0000 | |
---|---|---|
committer | 2013-08-14 09:29:48 +0000 | |
commit | fdfc8ad2d09d3b475df22ba22fca8593a63ae9f5 (patch) | |
tree | 8c7a6700bc8384063552555eaa4cf5dda2cb279b /java/src | |
parent | 4bc74d19ef72a919e09611e7d7b0d2d3d9e00a30 (diff) | |
parent | b7e782d8689c4071388cff073bbc9ae9309ba312 (diff) | |
download | latinime-fdfc8ad2d09d3b475df22ba22fca8593a63ae9f5.tar.gz latinime-fdfc8ad2d09d3b475df22ba22fca8593a63ae9f5.tar.xz latinime-fdfc8ad2d09d3b475df22ba22fca8593a63ae9f5.zip |
Merge "Re-evaluate auto-caps earlier."
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 8158ac055..03a790f1a 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1861,6 +1861,11 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } mConnection.setComposingText(getTextWithUnderline(mWordComposer.getTypedWord()), 1); mHandler.postUpdateSuggestionStrip(); + if (!mWordComposer.isComposingWord()) { + // If we just removed the last character, auto-caps mode may have changed so we + // need to re-evaluate. + mKeyboardSwitcher.updateShiftState(); + } } else { final SettingsValues currentSettings = mSettings.getCurrent(); if (mLastComposedWord.canRevertCommit()) { @@ -1948,6 +1953,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen if (currentSettings.isSuggestionsRequested(mDisplayOrientation)) { restartSuggestionsOnWordBeforeCursorIfAtEndOfWord(); } + // We just removed a character. We need to update the auto-caps state. + mKeyboardSwitcher.updateShiftState(); } } |