fixed OK not performing its normal function when it has completely failed showing the UI, or when there was no need to
This commit is contained in:
parent
92a101d523
commit
95e0eb4130
1 changed files with 2 additions and 0 deletions
|
|
@ -190,6 +190,8 @@ public class TraditionalT9 extends HotkeyHandler {
|
||||||
// when there is no text to avoid undesired submitting of something.
|
// when there is no text to avoid undesired submitting of something.
|
||||||
if (!isInputViewShown() && DeviceInfo.noTouchScreen(this) && textField.isEmpty()) {
|
if (!isInputViewShown() && DeviceInfo.noTouchScreen(this) && textField.isEmpty()) {
|
||||||
sendDownUpKeyEvents(KeyEvent.KEYCODE_DPAD_CENTER);
|
sendDownUpKeyEvents(KeyEvent.KEYCODE_DPAD_CENTER);
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue