Home > Mobile >  Webview cannot capture key messages
Webview cannot capture key messages

Time:09-19

I on the webview pages in the document. The onkeydown can't catch: the return key, menu, other buttons can be captured,
But I inside the apk activity, can be early onKeyDown capture button,
My idea is there a way to in the activity, and key messages sent to the webview page layer?
Can not achieve

CodePudding user response:

Can ah, you listening Activity in the apk, if press the return key, and a js method is invoked, native and WebView interaction, the foundation were compared

CodePudding user response:

I want to like keys, in the document. The capture button inside, not call a JS method,
For a web interface is through document calls
  • Related