A particularly good jquery shortcut plugin: Js-hotkeys

Source: Internet
Author: User
Tags modifiers

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.