return press fixed

This commit is contained in:
Vladimir Enchev
2016-03-22 16:08:06 +02:00
parent bf9fe0915c
commit 88e4945fdb

View File

@ -89,11 +89,9 @@ export class EditableTextBase extends common.EditableTextBase {
actionId === android.view.inputmethod.EditorInfo.IME_ACTION_GO ||
actionId === android.view.inputmethod.EditorInfo.IME_ACTION_SEARCH ||
actionId === android.view.inputmethod.EditorInfo.IME_ACTION_SEND ||
actionId === android.view.inputmethod.EditorInfo.IME_ACTION_NEXT) {
actionId === android.view.inputmethod.EditorInfo.IME_ACTION_NEXT ||
(event && event.getKeyCode() === android.view.KeyEvent.KEYCODE_ENTER)) {
owner.dismissSoftInput();
}
if (event && event.getKeyCode() === android.view.KeyEvent.KEYCODE_ENTER) {
owner._onReturnPress();
}
}