am 6d1cbbc2: Fix a bug with single quotes
* commit '6d1cbbc2ffb9d7046189174ec68b5b72bbc154b3': Fix a bug with single quotesmain
commit
c24ef33839
|
@ -1539,16 +1539,15 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
|||
if ((isAlphabet(code) || mSettingsValues.isSymbolExcludedFromWordSeparators(code))
|
||||
&& isSuggestionsRequested() && !isCursorTouchingWord()) {
|
||||
if (!mHasUncommittedTypedChars) {
|
||||
mHasUncommittedTypedChars = true;
|
||||
// Reset entirely the composing state anyway, then start composing a new word unless
|
||||
// the character is a single quote.
|
||||
mHasUncommittedTypedChars = (Keyboard.CODE_SINGLE_QUOTE != code);
|
||||
mComposingStringBuilder.setLength(0);
|
||||
mWordComposer.reset();
|
||||
clearSuggestions();
|
||||
mComposingStateManager.onFinishComposingText();
|
||||
}
|
||||
}
|
||||
if (code == Keyboard.CODE_SINGLE_QUOTE && !isCursorTouchingWord()) {
|
||||
mHasUncommittedTypedChars = false;
|
||||
}
|
||||
final KeyboardSwitcher switcher = mKeyboardSwitcher;
|
||||
if (switcher.isShiftedOrShiftLocked()) {
|
||||
if (keyCodes == null || keyCodes[0] < Character.MIN_CODE_POINT
|
||||
|
|
Loading…
Reference in New Issue