keyPress事件未在Android手机中触发 [英] keyPress event not firing in Android mobile

查看:341
本文介绍了keyPress事件未在Android手机中触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的Application使用 backbone,marionette 。我为桌面和移动使用了相同的代码但是 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 事件中未打开此链接,如果你在桌面中打开它就会解雇。我怎么解决这个问题。

If you open this link in mobile event not firing,If you open in desktop it's firing.How can I resolve this.

任何人都可以帮助我。

谢谢。

推荐答案

Chrome mobile暂时不支持正确的按键事件。这有一个长期存在的错误:

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

我相信它应该在第38版修复。

I believe it should be fixed in v38.

这篇关于keyPress事件未在Android手机中触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆