uxrocket.shortcodes
v0.2.0
Published
Keyboard short command definitions at ease
Downloads
2
Maintainers
Readme
UX Rocket ShortCode
Simple keyboard command definitions. For preventing overwriting default commands, only commands defined with alt least two of ALT, CTRL, SHIFT keys are accepted.
ShortCode has not depended any library. You can easily add the script to your page and start adding your commands.
<script src="_path_to_your_scripts/uxrocket.shorcodes.js">
Defining a new keyboard command
uxshortcode.addCommand('CTRL ALT T', function() { /* your callback command */ });
Removing a command
uxshortcode.removeCommand('CTRL ALT T');