From e010a2833ae7077e869ef89af0d24432db503fb9 Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Tue, 7 Apr 2020 18:11:09 +0200 Subject: [PATCH] fix(android): input autofocus and javascript focus not working (#2719) --- android/capacitor/src/main/java/com/getcapacitor/Bridge.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/capacitor/src/main/java/com/getcapacitor/Bridge.java b/android/capacitor/src/main/java/com/getcapacitor/Bridge.java index b9f99dbbb2..d1824af2a7 100644 --- a/android/capacitor/src/main/java/com/getcapacitor/Bridge.java +++ b/android/capacitor/src/main/java/com/getcapacitor/Bridge.java @@ -382,7 +382,7 @@ private void initWebView() { if (isDevMode()) { defaultDebuggable = true; } - + webView.requestFocusFromTouch(); WebView.setWebContentsDebuggingEnabled(Config.getBoolean("android.webContentsDebuggingEnabled", defaultDebuggable)); }