1
0
Fork 0

OK no longer shows the main view when it is hidden (#359)

This commit is contained in:
alexknop 2023-08-23 04:10:06 -04:00 committed by GitHub
parent 94289187e9
commit 6b5e7b7782
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -309,15 +309,11 @@ public class TraditionalT9 extends KeyPadHandler {
public boolean onOK() {
cancelAutoAccept();
if (!isInputViewShown() && !textField.isThereText()) {
forceShowWindowIfHidden();
return true;
} else if (isSuggestionViewHidden()) {
if (isSuggestionViewHidden()) {
return performOKAction();
} else {
acceptCurrentSuggestion(KeyEvent.KEYCODE_ENTER);
}
acceptCurrentSuggestion(KeyEvent.KEYCODE_ENTER);
return true;
}