fixed words being incorrectly capitalized when switching between languages while typing
This commit is contained in:
parent
a5a34693fc
commit
6c9fd2df1d
2 changed files with 3 additions and 3 deletions
|
|
@ -188,11 +188,10 @@ abstract public class CommandHandler extends TextEditingHandler {
|
|||
|
||||
// for languages that do not have ABC or Predictive, make sure we remain in valid state
|
||||
final String digits = mInputMode.getSequence();
|
||||
final int textCase = mInputMode.getTextCase();
|
||||
mInputMode = InputMode.getInstance(settings, mLanguage, inputType, textField, determineInputModeId());
|
||||
if (!InputModeKind.isNumeric(mInputMode)) {
|
||||
mInputMode.setTextCase(textCase);
|
||||
mInputMode.setSequence(digits);
|
||||
mInputMode.determineNextWordTextCase(-1);
|
||||
}
|
||||
|
||||
getSuggestions(null);
|
||||
|
|
|
|||
|
|
@ -344,7 +344,8 @@ class ModeWords extends ModeCheonjiin {
|
|||
|
||||
@Override
|
||||
public void determineNextWordTextCase(int nextDigit) {
|
||||
textCase = autoTextCase.determineNextWordTextCase(language, textCase, textFieldTextCase, textField.getStringBeforeCursor(), digitSequence + nextDigit);
|
||||
final String nextSequence = nextDigit >= 0 ? digitSequence + nextDigit : digitSequence;
|
||||
textCase = autoTextCase.determineNextWordTextCase(language, textCase, textFieldTextCase, textField.getStringBeforeCursor(), nextSequence);
|
||||
}
|
||||
|
||||
private void determineTextFieldTextCase() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue