disabled selecting lowercase in Predictive mode, when Auto Text Case is on and there are no suggestions
This commit is contained in:
parent
d59c78ccc9
commit
749471130c
1 changed files with 11 additions and 1 deletions
|
|
@ -408,8 +408,18 @@ public class ModePredictive extends InputMode {
|
|||
|
||||
@Override
|
||||
public boolean nextTextCase() {
|
||||
int before = textCase;
|
||||
boolean changed = super.nextTextCase();
|
||||
textFieldTextCase = changed ? CASE_UNDEFINED : textFieldTextCase; // since it's a user's choice, the default matters no more
|
||||
|
||||
// When Auto Text Case is on, only upper- and automatic cases are available, so we skip lowercase.
|
||||
// Yet, we allow adjusting individual words to lowercase, if needed.
|
||||
if (digitSequence.isEmpty() && settings.getAutoTextCase() && language.hasUpperCase() && (before == CASE_LOWER || textCase == CASE_LOWER)) {
|
||||
changed = super.nextTextCase();
|
||||
}
|
||||
|
||||
// since it's a user's choice, the default matters no more
|
||||
textFieldTextCase = changed ? CASE_UNDEFINED : textFieldTextCase;
|
||||
|
||||
return changed;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue