This is not really a new technology, this plugin has been released in the earlier, the project was used, so share it
Examples of how to add
JQuery.hotkeys.add (' Esc ', function () {// Execute functions }); JQuery.hotkeys.add (' CTRL + a ', function () {// execute Functions });
The following shortcut keys are supported: (note the use of some shortcuts to avoid the default browser: such as Ctrl+s)
PS: Too lazy to lead JS, support the following shortcut keys, want to use the small partners themselves can test Oh!
A jquery hotkey (shortcut key) plug-in, you can easily add, remove keyboard events, it is really convenient. For details, see:
About–js-hotkeys–google Code
Http://code.google.com/p/js-hotkeys/wiki/about
Here's demo:special. Keysesctabspacereturnbackspacescrollcapslocknumlockpauseinserthomedelendpageuppagedownleftuprightdownf1f2f3f4f5f6f7f8f9f1 0f11f12 A-Z lettersabcdefghijklmnopqrstuvwxyz special Modifiers
Ctrl
ctrl+actrl+bctrl+cctrl+dctrl+ectrl+fctrl+gctrl+hctrl+ictrl+jctrl+kctrl+lctrl+mctrl+nctrl+octrl+pctrl+qctrl+ Rctrl+sctrl+tctrl+uctrl+vctrl+wctrl+xctrl+yctrl+z
Shift
Shift+ashift+bshift+cshift+dshift+eshift+fshift+gshift+hshift+ishift+jshift+kshift+lshift+mshift+nshift+oshift +pshift+qshift+rshift+sshift+tshift+ushift+vshift+wshift+xshift+yshift+z
Alt
alt+aalt+balt+calt+dalt+ealt+falt+galt+halt+ialt+jalt+kalt+lalt+malt+nalt+oalt+palt+qalt+ralt+salt+talt+ualt+ Valt+walt+xalt+yalt+z Special Modifiers + special Keys
Ctrl
ctrl+escctrl+tabctrl+spacectrl+returnctrl+backspacectrl+scrollctrl+capslockctrl+numlockctrl+pausectrl+ insertctrl+homectrl+delctrl+endctrl+pageupctrl+pagedownctrl+leftctrl+upctrl+rightctrl+downctrl+f1ctrl+f2ctrl+ F3ctrl+f4ctrl+f5ctrl+f6ctrl+f7ctrl+f8ctrl+f9ctrl+f10ctrl+f11ctrl+f12
Shift
shift+escshift+tabshift+spaceshift+returnshift+backspaceshift+scrollshift+capslockshift+numlockshift+ pauseshift+insertshift+homeshift+delshift+endshift+pageupshift+pagedownshift+leftshift+upshift+rightshift+ Downshift+f1shift+f2shift+f3shift+f4shift+f5shift+f6shift+f7shift+f8shift+f9shift+f10shift+f11shift+f12
Alt
alt+escalt+tabalt+spacealt+returnalt+backspacealt+scrollalt+capslockalt+numlockalt+pausealt+insertalt+homealt+ delalt+endalt+pageupalt+ pagedownalt+leftalt+upalt+rightalt+ downalt+f1alt+f2alt+f3alt+f4alt+f5alt+f6alt+f7alt+ F8alt+f9alt+f10alt+f11alt+f12
A particularly good jquery shortcut plug-in: Js-hotkeys