uxrocket.shortcodes

Keyboard short command definitions at ease

Usage no npm install needed!

<script type="module">
  import uxrocketShortcodes from 'https://cdn.skypack.dev/uxrocket.shortcodes';
</script>

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');