I have a WebView with keyboard-controlled javascript in it, but then meet a problem that: Webview won't pass the arrow key to Javascript. Codes are like:
public void onCreate(Bundle savedInstanceState) {
mWebView = new MyWebView(this);
setContentView(mWebView);
}
When I launch this Activity
and press arrow key, the WebView moves and JavaScript in loaded pages does not trigger. Other keys like Enter or alphabets work well.
Is there a way to bypass arrow keys into web pages? Thanks.