Skip to content

u1ui/shortcut.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

shortcut.js

Easy keyboard shortcuts

Usage

listen('a+b+c', () => {
    alert('a+b+c pressed');
}, {target: testEl});
<textarea id=testEl>write "abc" while holding the keys</textarea>

doc

Install

import * as module from "https://cdn.jsdelivr.net/gh/u1ui/shortcut.js@x.x.x/shortcut.min.js"

Demos

minimal.html
test.html

About

  • MIT License, Copyright (c) 2022 (like all repositories in this organization)
  • Suggestions, ideas, finding bugs and making pull requests make us very happy. ♥