开发者

Javascript cross-browser input layer

I'm making a web application that uses the keyboard quite extensively. I notice that the builtin browser e开发者_JAVA技巧vent handling is inconsistent across browsers, and jQuery does not normalize very well (eg. Firefox sends a keypress for backspace, chrome doesn't). I'm wondering if there is a javascript library that normalizes these idiosyncrasies and presents a uniform interface to keyboard event handling.


Here are a couple:

http://habrahabr.ru/blogs/jquery/76424/

http://www.openjs.com/scripts/events/keyboard_shortcuts/

http://wiki.fluidproject.org/display/fluid/Keyboard+Accessibility+Plugin+API

Note that the first is in Russian, but Google Translate does a good job of translating it. translate.google.com

I haven't tried any of them, but haven't seen anyone else suggest anything. Hopefully that gives you a starting point. Good luck!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜