zoukankan      html  css  js  c++  java
  • js jqueryhotkeys

    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

  • 相关阅读:
    linux mint使用起來比較穩定
    ubntu下的记录软件brasero ,mint内置
    [Enterprise Library]Data (二)DataCollection
    jquery 获取标签名
    谁会做logo呢
    供用淘宝卖家常用的称谓:各位亲,跨年,诸事顺利~
    rails缓存 学习
    test
    jquery 复习基础知识
    开机改用nginx启动,停止apache2的开机启动
  • 原文地址:https://www.cnblogs.com/wucg/p/1819040.html
Copyright © 2011-2022 走看看