#About
**jQuery Hotkeys** is a plug-in that lets you easily add and remove handlers for keyboard events anywhere in your code supporting almost any key combination.
This plugin is based off of the plugin by Tzury Bar Yochay: [jQuery.hotkeys](http://github.com/tzuryby/hotkeys)
The syntax is as follows:
$(expression).bind(types, keys, handler);
$(expression).unbind(types, handler);
$(document).bind('keydown', 'ctrl+a', fn);
// e.g. replace '$' sign with 'EUR'
$('input.foo').bind('keyup', '$', function(){
this.value = this.value.replace('$', 'EUR');
});
## Types
Supported types are `'keydown'`, `'keyup'` and `'keypress'`
## Notes
If you want to use more than one modifiers (e.g. alt+ctrl+z) you should define them by an alphabetical order e.g. alt+ctrl+shift
Hotkeys aren't tracked if you're inside of an input element (unless you explicitly bind the hotkey directly to the input). This helps to avoid conflict with normal user typing.
## jQuery Compatibility
Works with jQuery 1.4.2 and newer.
It known to be working with all the major browsers on all available platforms (Win/Mac/Linux)
* IE 6/7/8
* FF 1.5/2/3
* Opera-9
* Safari-3
* Chrome-0.2
### Addendum
Firefox is the most liberal one in the manner of letting you capture all short-cuts even those that are built-in in the browser such as `Ctrl-t` for new tab, or `Ctrl-a` for selecting all text. You can always bubble them up to the browser by returning `true` in your handler.
Others, (IE) either let you handle built-in short-cuts, but will add their functionality after your code has executed. Or (Opera/Safari) will *not* pass those events to the DOM at all.
*So, if you bind `Ctrl-Q` or `Alt-F4` and your Safari/Opera window is closed don't be surprised.*
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
基于Web的SVG编辑器 (227个子文件)
svg-editor.css 24KB
jgraduate.css 5KB
jPicker.css 3KB
JQuerySpinBtn.css 2KB
picker.gif 146B
mappoint.gif 93B
rangearrows2.gif 93B
rangearrows.gif 76B
dropdown.gif 49B
flyup.gif 48B
svg-editor.html 29KB
embedapi.html 2KB
index.html 2KB
browser-not-supported.html 2KB
svgcanvas.js 249KB
svgedit.compiled.js 232KB
svg-editor.js 146KB
jpicker.js 98KB
jquery.js 92KB
canvg.js 86KB
jquery-ui-1.8.17.custom.min.js 38KB
jquery-ui-1.8.custom.min.js 38KB
jquery.jgraduate.js 36KB
jpicker.min.js 36KB
path.js 25KB
history.js 20KB
jquery.jgraduate.min.js 19KB
svgutils.js 17KB
ext-shapes.js 17KB
ext-markers.js 16KB
draw.js 16KB
ext-connector.js 15KB
select.js 15KB
sanitize.js 14KB
jquery.svgicons.js 14KB
lang.hi.js 12KB
lang.ru.js 11KB
ext-imagelib.js 11KB
lang.fa.js 11KB
lang.th.js 10KB
lang.bg.js 10KB
lang.el.js 10KB
lang.be.js 10KB
lang.sr.js 10KB
lang.mk.js 10KB
lang.uk.js 10KB
lang.yi.js 9KB
lang.fr.js 9KB
lang.es.js 9KB
lang.ro.js 9KB
lang.de.js 9KB
JQuerySpinBtn.js 9KB
locale.js 9KB
lang.ar.js 9KB
lang.cs.js 9KB
lang.ja.js 9KB
lang.vi.js 9KB
lang.it.js 9KB
lang.he.js 9KB
lang.nl.js 9KB
lang.sk.js 9KB
rgbcolor.js 9KB
lang.tl.js 9KB
lang.pt-BR.js 8KB
lang.tr.js 8KB
lang.lt.js 8KB
lang.ga.js 8KB
lang.ko.js 8KB
lang.fy.js 8KB
lang.pt-PT.js 8KB
lang.ca.js 8KB
lang.af.js 8KB
lang.lv.js 8KB
lang.hr.js 8KB
lang.pl.js 8KB
lang.hu.js 8KB
lang.gl.js 8KB
lang.sq.js 8KB
lang.mt.js 8KB
lang.sl.js 8KB
lang.fi.js 8KB
lang.cy.js 8KB
lang.is.js 8KB
lang.da.js 8KB
lang.et.js 8KB
lang.sv.js 8KB
lang.sw.js 8KB
lang.ms.js 8KB
lang.no.js 8KB
lang.id.js 8KB
lang.test.js 8KB
lang.en.js 8KB
lang.az.js 8KB
lang.hy.js 8KB
lang.zh-TW.js 8KB
lang.zh-HK.js 8KB
lang.zh-CN.js 8KB
svgtransformlist.js 8KB
units.js 8KB
math.js 7KB
共 227 条
- 1
- 2
- 3
资源评论
- zxj4182015-05-05不错 正在研究
- szbbm2019-12-28打不开文件有问题
- 小猪做IT2016-05-11正在看,应该还不错
- 微夏2017-03-20不靠谱,就是一些静态网页,没法用啊
- incompletion2016-11-14不太符合预想
程序员猪猪侠
- 粉丝: 23
- 资源: 16
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 351AN-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 346G-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 342P-VB一款P-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 3420-VB一款SOT23封装N-Channel场效应MOS管
- UDP原理详解和代码示例
- 3414-VB一款N-Channel沟道SOT23的MOSFET晶体管参数介绍与应用说明
- 以下是一些大数据面试习题.pdf
- 3414-CMN3414-VB一款SOT23封装N-Channel场效应MOS管
- ASTM G154-2023 Practice for Operating Fluorescent Ultraviolet UV
- 小米智能摄像机 云台版2K 固件
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功