Javascript jQuery Hotkeys (keyboard shortcut Keys) Plugin

I find it really interesting and useful when i navigate on Gmail and Google reader without touching my mouse. It is also very fast to use Hotkeys than using your mouse. You can check these shortcuts for Gmail and Google Reader if you still use mouse while using these applications. Try it out!

It is wise to add this feature in your web application and can be done easily using a jQuery plugin. This is depends on the nature of application. I think it is advisable to introduce Hot keys if web application is running in one page more or less like Gmail/Google reader and require lot of navigation.

Go to http://code.google.com/p/js-hotkeys/ to check this plugin it is a cross Browser Module (Works with Safari, Opera, Firefox, Chrome and IE). You just need to include this js file on your web page along with jQuery.js to use this plugin.

Binding ‘Ctrl+c’

 
// On keydown event of 'Ctrl+C' key function fn will be called
$(document).bind('keydown', 'Ctrl+c', fn);
 



Unbinding ‘Ctrl+c’

 
// On keydown event of 'Ctrl+C' key function fn will not be called onwards
$(document).unbind('keydown', 'Ctrl+c', fn);
 


see working example at http://jshotkeys.googlepages.com/test-static-01.html

Most Commented Posts

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

[...] Javascript jQuery Hotkeys (keyboard shortcut Keys) Plugin http://www.techiegyan.com/?p=277 ? ?????? ????? 1 ?????? edno23.com ?????? ???????? [...]

Leave a comment

(required)

(required)