Cross Browser Module (Works with Safari, Opera, Firefox, Chrome and IE)
The latest Version is 0.7.8
jQuery.Hotkeys plugin lets you easily add and remove handlers for keyboard events anywhere in your code supporting almost any key combination. It takes one line of code to bind/unbind a hot key combination.
Example:
Binding 'Ctrl+c'
$(document).bind('keydown', 'ctrl+c', fn);
Unbinding 'Ctrl+c'
$(document).unbind('keydown', 'ctrl+c', fn);
Known Issues
- KeyPress is not working well owe to the fact that keycodes varies between key[down|up] and key press (lower and upper case). see example atTest #6. This should be solved in the next version