HotKeys

jQuery Keyboard Shortcut Hooker Plugin is now called Hotkeys. Make sense, right? The script was tested on Linux, Windows, and MacOS, IE, Safari and Firefox.

The final result is relatively small file (121 lines of code). But do not let this fact misleading you by underestimating its value.

> See Live Demo  

Read more at Google Code and jQuery Plugin Repository

8 Responses

  1. Ey, this plugin doesnt work with jquery 1.2.1, why?

    Calderon - September 25, 2007 at 7:01 pm
  2. Dear Calderon,
    I believe I will produce during this weekend a 1.2 compliant version.
    stay tuned.

    Tzury Bar Yochay - September 25, 2007 at 9:07 pm
  3. Thanks!!! This plugin is wonderful. Thanks very much!

    Calderon - September 26, 2007 at 10:36 am
  4. I find bugs and report.
    jquery.hotkeys.003, jQuery 1.2.1.

    $.hotkeys.add(,{ target : ‘div#editor’ }, );
    not work.

    $.hotkeys.add(,{ target : $(’div#editor’ })[0], );
    work, but not assume work.

    K2 - January 5, 2008 at 6:41 pm
  5. I don’t know what are you trying to do, but, as I see in the two examples you didn’t supplied neither the shortcut nor the function reference.

    Instead of
    $.hotkeys.add(,{ target : ‘div#editor’ }, );
    there should be something like:
    $.hotkeys.add('Ctrl+x',{ target : ‘div#editor’ }, function(){do_somthing();});

    In general, comments regarding this plug-in may be submitted at the project’s site

    Tzury Bar Yochay - January 6, 2008 at 9:47 am
  6. Typo or paste miss.
    I wanted to say so,

    $.hotkeys.add( ‘Ctrl+Up’ ,{ target : ‘div#editor’ }, );
    not work.

    $.hotkeys.add( ‘Ctrl+Up’ ,{ target : $(’div#editor’ })[0], );
    work.

    And “not work” code is written USAGE in “jquery.hotkeys.js”
    Sorry, bad English.

    K2 - January 6, 2008 at 8:44 pm
  7. mistake is repeated…
    I should like to point out is the ‘target’ part.
    Others have no problem.

    K2 - January 6, 2008 at 8:48 pm
  8. can you tell how i can manage “shift+click” events? it’s need for multyple list items selection. thx.

    jamiro.xmg - March 6, 2008 at 4:22 pm

Leave a Reply