使用jQuery的键盘快捷键 [英] Keyboard shortcuts with jQuery

查看:185
本文介绍了使用jQuery的键盘快捷键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果有人按下字母 g ,如何将事件连接起来?

How can I wire an event to fire if someone presses the letter g?

(所有字母的字符映射在哪里? BTW?)

(Where is the character map for all the letters BTW?)

推荐答案

由于这个问题最初被问到,John Resig(jQuery的主要作者)已经分叉并改进了js -hotkeys项目。他的版本位于:

Since this question was originally asked, John Resig (the primary author of jQuery) has forked and improved the js-hotkeys project. His version is available at:

http:// github.com/jeresig/jquery.hotkeys

这篇关于使用jQuery的键盘快捷键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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