Skip to content

linyimin0812/keypress-event

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Listen to the key press

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published