Hotkey 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
Hotkey 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
Hotkey 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 未知
开发语言
操作系统 未知
软件类型 开源软件
开源组织
地区 不详
投 递 者 不详
适用人群 未知
收录时间 2008-09-19

软件简介

HotKeys is a keyboard hooker plug-in.

May you find this useful in cases of:
  • Powering your Ajax applications with keyboard short-cuts such as Ctrl+x, Alt+y, Shift+z, etc.

  • Games development with Javascript + jQuery

HotKeys lets you easily add and remove handlers for keyboard events anywhere in your code supporting almost *any* keys combination.
It takes a single line of code to bind or unbind a hot key.

Binding 'Ctrl+c'

$(document).bind('keydown', 'Ctrl+c', fn);


Unbinding 'Ctrl+c'

$(document).unbind('keydown', 'Ctrl+c', fn);

Live demo at: http://jshotkeys.googlepages.com/test-static-01.html

Update:New Version (0.7) Available at: http://code.google.com/p/js-hotkeys/downloads/list

展开阅读全文

评论

点击引领话题📣
暂无内容
发表了博客
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
发表了问答
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
暂无内容
0 评论
10 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部