jQuery Plugin To Create Custom Shortcuts For Any Actions - quick-shortcuts
File Size: | 3.4 KB |
---|---|
Views Total: | 544 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |

quick-shortcuts is a super tiny jQuery plugin that creates custom keyboard shortcuts to execute any JavaScript actions on the webpage.
How to use it:
1. Make sure you first have jQuery library installed and then include the jQuery quick-shortcuts plugin on the webpage.
<script src="//code.jquery.com/jquery.min.js"></script> <script src="quick-shortcuts-min.js"></script>
2. Bind custom keyboard shortcuts to your actions using the setmethods
options.
$(document).quickShortcuts({ 'setMethods' : { // ctrl+1 '1' : function(){ // do something }, // ctrl+s 'S': function(){ // do something } } });
This awesome jQuery plugin is developed by mihirbhende1201. For more Advanced Usages, please check the demo page or visit the official website.