开发者

Javascript cross-browser input layer

开发者 https://www.devze.com 2023-03-14 04:24 出处:网络
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 ve

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

精彩评论

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

关注公众号