js-hotkeys is a jQuery plugin which enables you to create keyboard triggered events.
This is a very nice feature if you want to provide users more browsing flexibility. And also, it can be used in JavaScript testing environments like triggering a test function by clicking CTRL + t
.
A simple usage of the plugin is:
$.hotkeys.add('Ctrl+a',function(){/*DO YOUR DUTY*/});
$.hotkeys.remove(’Ctrl+a’);
A demo of this jQuery keyboard control plugin can be found here.
Requirements: jQuery
Compatibility: All Major Browsers (some handicaps are mentioned at the product website)
Website: http://code.google.com/p/js-hotkeys/
Demo: http://jshotkeys.googlepages.com/test-static.html
No comments:
Post a Comment