HotKeys jQuery Plug-In version 0.7 is out
Posted: September 5, 2008 Filed under: javascript, jquery, webdev, www | Tags: event, javascript, jquery, keyboard, opensource, webdev 5 CommentsLast night I released a new comprehenced version of jshotkeys. This plugin lets you easily add and remove handlers for keyboard events anywhere in your code supporting almost any key combination.
For example, to bind Ctrl+C
to a function fn
simply type:
$(document).bind('keydown', 'Ctrl+c', fn);
See the live demo.
This is a very, very, nice plugin :-)
Are you planning to add support for data-binding just like regular jquery events? Its even more important with a key-event, as all of them is bound to document.
That is the only thing I miss.
Any chance you’ve tested this with jQuery 1.3.1? I just switched to that version and the only plugin that doesn’t seem to work is js-hotkeys. I really love the simplicity and utility of this plugin, nice work.
Tyler
Yes i second tyler’s remark. Seems that certain options don’t work in jQ 1.3
Hi Sir. Its really a great job. I’m facing difficulties to implement more than 2 keys for my purpose (ctrl+q+c) say this combination is Quote->Create. For just ctrl+q it works fine but when i try to add the third key it doesn’t works. I need your suggestion on this. I would be a great help for me.
Thanks & Regards,
Amin Sayed.
Can you add AltGr key support, please