Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/linyimin0812/keypress-event
Listen to the key press
https://github.com/linyimin0812/keypress-event
iohook keypress typescript
Last synced: 27 days ago
JSON representation
Listen to the key press
- Host: GitHub
- URL: https://github.com/linyimin0812/keypress-event
- Owner: linyimin0812
- License: mit
- Created: 2018-08-17T07:35:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-09T14:23:06.000Z (over 6 years ago)
- Last Synced: 2024-12-17T03:33:31.142Z (about 1 month ago)
- Topics: iohook, keypress, typescript
- Language: TypeScript
- Size: 14.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Capture the specified shortcut
### Usage
```typescript
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.