keypress-event
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

Capture the specified shortcut

Usage

import Keypress from 'keypress-event'
 
Keypress.registerShortcut(['ctrl', 'alt', 'u'], () => {
  console.log('Ctrl+Alt+u trigger')
})
Keypress.start()

When You press the shortcut at the sametime, the callback function will be executed.

Package Sidebar

Install

npm i keypress-event

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

23 kB

Total Files

18

Last publish

Collaborators

  • linyimin