mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #1826 from NativeScript/return-press
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