文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>js jquery-hotkeys

js jquery-hotkeys

时间:2010-09-06  来源:吴X

 

http://code.google.com/p/js-hotkeys/

 

jQuery.Hotkeys plugin lets you easily add and remove handlers for keyboard events anywhere in your code supporting almost any key combination. It takes one line of code to bind/unbind a hot key combination.

Example:

Binding 'Ctrl+c'

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

Unbinding 'Ctrl+c'

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

 

 

http://code.google.com/p/js-hotkeys/wiki/about
 
下面是DEMO:

Special Keys

esc
tab
space
return
backspace
scroll
capslock
numlock
pause
insert
home
del
end
pageup
pagedown
left
up
right
down
f1
f2
f3
f4
f5
f6
f7
f8
f9
f10
f11
f12
A-Z Letters

a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Special Modifiers

Ctrl
Ctrl+a
Ctrl+b
Ctrl+c
Ctrl+d
Ctrl+e
Ctrl+f
Ctrl+g
Ctrl+h
Ctrl+i
Ctrl+j
Ctrl+k
Ctrl+l
Ctrl+m
Ctrl+n
Ctrl+o
Ctrl+p
Ctrl+q
Ctrl+r
Ctrl+s
Ctrl+t
Ctrl+u
Ctrl+v
Ctrl+w
Ctrl+x
Ctrl+y
Ctrl+z
Shift
Shift+a
Shift+b
Shift+c
Shift+d
Shift+e
Shift+f
Shift+g
Shift+h
Shift+i
Shift+j
Shift+k
Shift+l
Shift+m
Shift+n
Shift+o
Shift+p
Shift+q
Shift+r
Shift+s
Shift+t
Shift+u
Shift+v
Shift+w
Shift+x
Shift+y
Shift+z
Alt
Alt+a
Alt+b
Alt+c
Alt+d
Alt+e
Alt+f
Alt+g
Alt+h
Alt+i
Alt+j
Alt+k
Alt+l
Alt+m
Alt+n
Alt+o
Alt+p
Alt+q
Alt+r
Alt+s
Alt+t
Alt+u
Alt+v
Alt+w
Alt+x
Alt+y
Alt+z
Special Modifiers + Special Keys

Ctrl
Ctrl+esc
Ctrl+tab
Ctrl+space
Ctrl+return
Ctrl+backspace
Ctrl+scroll
Ctrl+capslock
Ctrl+numlock
Ctrl+pause
Ctrl+insert
Ctrl+home
Ctrl+del
Ctrl+end
Ctrl+pageup
Ctrl+pagedown
Ctrl+left
Ctrl+up
Ctrl+right
Ctrl+down
Ctrl+f1
Ctrl+f2
Ctrl+f3
Ctrl+f4
Ctrl+f5
Ctrl+f6
Ctrl+f7
Ctrl+f8
Ctrl+f9
Ctrl+f10
Ctrl+f11
Ctrl+f12
Shift
Shift+esc
Shift+tab
Shift+space
Shift+return
Shift+backspace
Shift+scroll
Shift+capslock
Shift+numlock
Shift+pause
Shift+insert
Shift+home
Shift+del
Shift+end
Shift+pageup
Shift+pagedown
Shift+left
Shift+up
Shift+right
Shift+down
Shift+f1
Shift+f2
Shift+f3
Shift+f4
Shift+f5
Shift+f6
Shift+f7
Shift+f8
Shift+f9
Shift+f10
Shift+f11
Shift+f12
Alt
Alt+esc
Alt+tab
Alt+space
Alt+return
Alt+backspace
Alt+scroll
Alt+capslock
Alt+numlock
Alt+pause
Alt+insert
Alt+home
Alt+del
Alt+end
Alt+pageup
Alt+ pagedown
Alt+left
Alt+up
Alt+right
Alt+ down
Alt+f1
Alt+f2
Alt+f3
Alt+f4
Alt+f5
Alt+f6
Alt+f7
Alt+f8
Alt+f9
Alt+f10
Alt+f11
Alt+f12

 

 

 

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载