Android: Input requestFocus show soft input

This commit is contained in:
王劲鹏 2021-06-29 10:30:23 +08:00 committed by osborn
parent c574f87b94
commit ecb2839a10

View File

@ -315,6 +315,7 @@ public class InputNode extends ViewNode<EditText> implements TextWatcher, View.O
@DoricMethod @DoricMethod
public void requestFocus(DoricPromise promise) { public void requestFocus(DoricPromise promise) {
mView.requestFocus(); mView.requestFocus();
mInputMethodManager.showSoftInput(mView, 0);
promise.resolve(); promise.resolve();
} }