有人贴这个....
在4.4.2(api级别19)中,当使用软(软件)键盘时,WebView不再正确地在javascript中接收按键事件.不调用javascript函数.
我已经在模拟器和Nexus 4运行中确认了这一点,4.4.2. 我已经附加了一个示例网页.对于模拟器,LogCat显示以下消息指示问题:
04-07 23:59:22.613: E/chromium(2271): [ERROR:immediate_input_router.cc(507)] We seem to have a different key type sent from the renderer. (7 vs. 10). Ignoring event.
04-07 23:59:22.613: E/chromium(2271): [ERROR:immediate_input_router.cc(504)] Got a KeyEvent back from the renderer but we don't seem to have sent it to the renderer!
04-07 23:59:22.633: E/chromium(2271): [ERROR:immediate_input_router.cc(504)] Got a KeyEvent back from the renderer but we don't seem to have sent it to the renderer!
04-07 23:59:54.203: W/UnimplementedWebViewApi(2271): Unimplemented WebView method onKeyDown …Run Code Online (Sandbox Code Playgroud) android ×1