From ecb2839a108696fff48f1683a93a6ac742f22e51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Tue, 29 Jun 2021 10:30:23 +0800 Subject: [PATCH] Android: Input requestFocus show soft input --- .../doric/src/main/java/pub/doric/shader/InputNode.java | 1 + 1 file changed, 1 insertion(+) diff --git a/doric-android/doric/src/main/java/pub/doric/shader/InputNode.java b/doric-android/doric/src/main/java/pub/doric/shader/InputNode.java index f684faa5..1376f76d 100644 --- a/doric-android/doric/src/main/java/pub/doric/shader/InputNode.java +++ b/doric-android/doric/src/main/java/pub/doric/shader/InputNode.java @@ -315,6 +315,7 @@ public class InputNode extends ViewNode implements TextWatcher, View.O @DoricMethod public void requestFocus(DoricPromise promise) { mView.requestFocus(); + mInputMethodManager.showSoftInput(mView, 0); promise.resolve(); }