diff options
author | 2013-08-14 02:32:46 -0700 | |
---|---|---|
committer | 2013-08-14 02:32:46 -0700 | |
commit | 668a441be9f2c0ca333d327b8d2fc5916c5472a4 (patch) | |
tree | 73c02352d54c4642989e474d8ef6604d719571c3 /java/src | |
parent | 9c396a24c9b76ad53314062776c154c48e33d046 (diff) | |
parent | fdfc8ad2d09d3b475df22ba22fca8593a63ae9f5 (diff) | |
download | latinime-668a441be9f2c0ca333d327b8d2fc5916c5472a4.tar.gz latinime-668a441be9f2c0ca333d327b8d2fc5916c5472a4.tar.xz latinime-668a441be9f2c0ca333d327b8d2fc5916c5472a4.zip |
am fdfc8ad2: Merge "Re-evaluate auto-caps earlier."
* commit 'fdfc8ad2d09d3b475df22ba22fca8593a63ae9f5':
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(); } } |