OK no longer shows the main view when it is hidden (#359)
This commit is contained in:
parent
94289187e9
commit
6b5e7b7782
1 changed files with 3 additions and 7 deletions
|
|
@ -309,15 +309,11 @@ public class TraditionalT9 extends KeyPadHandler {
|
||||||
public boolean onOK() {
|
public boolean onOK() {
|
||||||
cancelAutoAccept();
|
cancelAutoAccept();
|
||||||
|
|
||||||
if (!isInputViewShown() && !textField.isThereText()) {
|
if (isSuggestionViewHidden()) {
|
||||||
forceShowWindowIfHidden();
|
|
||||||
return true;
|
|
||||||
} else if (isSuggestionViewHidden()) {
|
|
||||||
return performOKAction();
|
return performOKAction();
|
||||||
|
} else {
|
||||||
|
acceptCurrentSuggestion(KeyEvent.KEYCODE_ENTER);
|
||||||
}
|
}
|
||||||
|
|
||||||
acceptCurrentSuggestion(KeyEvent.KEYCODE_ENTER);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue