mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
return press fixed
This commit is contained in:
@ -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_GO ||
|
||||||
actionId === android.view.inputmethod.EditorInfo.IME_ACTION_SEARCH ||
|
actionId === android.view.inputmethod.EditorInfo.IME_ACTION_SEARCH ||
|
||||||
actionId === android.view.inputmethod.EditorInfo.IME_ACTION_SEND ||
|
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();
|
owner.dismissSoftInput();
|
||||||
}
|
|
||||||
|
|
||||||
if (event && event.getKeyCode() === android.view.KeyEvent.KEYCODE_ENTER) {
|
|
||||||
owner._onReturnPress();
|
owner._onReturnPress();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user