⌨️ JavaScript Libraries To Create Custom Keyboard Shortcuts | easyShortcut.js

easyShortcut.js is a short keyboard javascript library for creating on-page ‘hotkeys‘ or ‘cheat codes‘.

custom keyboard shortcuts chrome, create keyboard shortcuts for text, hotkeys, how do i create keyboard shortcuts

Features:

  • Simplicity in making custom shortcuts
  • Clean coding (no need to specify many ifs etc anymore)
  • To be objective oriented

How to make use of it:

1. Import the easyShortcut.min.js library into the document.

<script src="easyShortcut.min.js"></script>

2. Run a function when A is pressed on the page.

new shortcut({
    key: "c",
    fn: () => {
      // do something
    }
})

3. Enable/disable modifier keys.

new shortcut({
    ctrl: true,
    alt: true,
    shift: false,
    meta: false,
    key: "c",
    fn: () => {
      // CTRL+ALT+A
    }
})

Create Custom Keyboard Shortcuts With The easyShortcut.js Library Plugin/Github


See Demo And Download

Official Website(wwwAlireza): Click Here

This superior jQuery/javascript plugin is developed by wwwAlireza. For extra Advanced Usages, please go to the official website.

Leave a Comment