keyPress 事件未在 Android 手机中触发 [英] keyPress event not firing in Android mobile
问题描述
我在我的应用程序中使用了 backbone,marionette
.我为 desktop 和 mobile
使用了相同的代码,但是 keypress
在 mobile
.我做了一个 Jsfiddle 用于测试.
I am using backbone,marionette
for my Application.I used same code for both desktop and mobile
but keypress
not working in mobile
.I made a Jsfiddle for testing.
如果你在 mobile
事件中打开这个链接不会触发,如果你在 desktop
中打开它会触发.我该如何解决这个问题.
If you open this link in mobile
event not firing,If you open in desktop
it's firing.How can I resolve this.
谁能帮帮我.
谢谢.
推荐答案
Chrome 移动版暂时无法正确支持按键事件.这有一个长期存在的错误:
Chrome mobile doesn't support keypress events properly for now. There is a long standing bug for this:
https://code.google.com/p/chromium/issues/detail?id=118639
我认为它应该在 v38 中修复.错误报告被关闭为不会修复".
I believe it should be fixed in v38. The bug report was closed as "won't fix".
这篇关于keyPress 事件未在 Android 手机中触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!