mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am fdfc8ad2
: Merge "Re-evaluate auto-caps earlier."
* commit 'fdfc8ad2d09d3b475df22ba22fca8593a63ae9f5': Re-evaluate auto-caps earlier.
This commit is contained in:
commit
668a441be9
@ -1861,6 +1861,11 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||||||
}
|
}
|
||||||
mConnection.setComposingText(getTextWithUnderline(mWordComposer.getTypedWord()), 1);
|
mConnection.setComposingText(getTextWithUnderline(mWordComposer.getTypedWord()), 1);
|
||||||
mHandler.postUpdateSuggestionStrip();
|
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 {
|
} else {
|
||||||
final SettingsValues currentSettings = mSettings.getCurrent();
|
final SettingsValues currentSettings = mSettings.getCurrent();
|
||||||
if (mLastComposedWord.canRevertCommit()) {
|
if (mLastComposedWord.canRevertCommit()) {
|
||||||
@ -1948,6 +1953,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||||||
if (currentSettings.isSuggestionsRequested(mDisplayOrientation)) {
|
if (currentSettings.isSuggestionsRequested(mDisplayOrientation)) {
|
||||||
restartSuggestionsOnWordBeforeCursorIfAtEndOfWord();
|
restartSuggestionsOnWordBeforeCursorIfAtEndOfWord();
|
||||||
}
|
}
|
||||||
|
// We just removed a character. We need to update the auto-caps state.
|
||||||
|
mKeyboardSwitcher.updateShiftState();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user