Skip to content

Commit 6d50a84

Browse files
Sevellionminggo
authored andcommitted
fix keyback bug after opened a page (#18153)
bug happen when: 1.implement keyback in a scene 2.implement webview in that scene and load a default URL 3.click any link and wait for it to load 4.press key back, the implemented keyback will not be called
1 parent 2c025d8 commit 6d50a84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxWebView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public Cocos2dxWebView(Context context, int viewTag) {
5050
this.mJSScheme = "";
5151

5252
this.setFocusable(true);
53-
this.setFocusableInTouchMode(true);
53+
this.setFocusableInTouchMode(false);
5454

5555
this.getSettings().setSupportZoom(false);
5656

0 commit comments

Comments
 (0)