enabled language switching while typing in ABC mode too
This commit is contained in:
parent
2ac71c3440
commit
88ea103079
2 changed files with 9 additions and 2 deletions
|
|
@ -190,8 +190,8 @@ abstract public class CommandHandler extends TextEditingHandler {
|
|||
final String digits = mInputMode.getSequence();
|
||||
final int textCase = mInputMode.getTextCase();
|
||||
mInputMode = InputMode.getInstance(settings, mLanguage, inputType, textField, determineInputModeId());
|
||||
mInputMode.setTextCase(textCase);
|
||||
if (InputModeKind.isPredictive(mInputMode)) {
|
||||
if (!InputModeKind.isNumeric(mInputMode)) {
|
||||
mInputMode.setTextCase(textCase);
|
||||
mInputMode.setSequence(digits);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -98,6 +98,13 @@ class ModeABC extends InputMode {
|
|||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSequence(@NonNull String sequence) {
|
||||
super.setSequence(sequence);
|
||||
refreshSuggestions();
|
||||
shouldSelectNextLetter = true;
|
||||
}
|
||||
|
||||
@Override public void onAcceptSuggestion(@NonNull String w) { reset(); }
|
||||
@Override public boolean shouldAcceptPreviousSuggestion(String w) { return !shouldSelectNextLetter; }
|
||||
@Override public boolean shouldSelectNextSuggestion() { return shouldSelectNextLetter; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue