Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 296 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 296 Bytes

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.