hotkey-mapper
TypeScript icon, indicating that this package has built-in type declarations

2.1.3 • Public • Published

Hotkey-mapper

a simply frontend hotkey-mapper

Usage

import hotkeyMapper from 'hotkey-mapper'
const unloadHotkeyMaps = hotkeyMapper({
    "alt+i": () => console.log('init-task'),
    "alt+t": () => console.log('tag'),
    "alt+n": () => console.log('next-task'),
    "alt+u": () => console.log('user'),
    "ctrl+alt+c": () => console.log('code-action'),
});
await new Promise(r => setTimeout(r, 60e3)) // wait 1 min
unloadHotkeyMaps()

About

License

GPLv3 - The GNU General Public License v3.0 - GNU Project - Free Software Foundation

Author

Author: snomiao snomiao@gmail.com Website: snomiao.com

Sponsors

  • None yet.

Claim your sponsorship by donating snomiao <Email: snomiao@gmail.com>

Contribute

The main repo is in here, any issue and PR's welcome.

Package Sidebar

Install

npm i hotkey-mapper

Weekly Downloads

2

Version

2.1.3

License

MIT

Unpacked Size

20 kB

Total Files

8

Last publish

Collaborators

  • snomiao