react-key-watcher
v0.0.2
Published
watch for key combinations
Downloads
6
Readme
react-key-watcher
Watch for simultaneous keypresses.
import KeyWatcher from 'react-key-watcher'
...
<KeyWatcher
keyCodes={[
69, // e
81, // q
82, // r
87, // w
]}
onKeyComboPressed={() => console.log('qwer pressed!')}
/>
kickstarted by npm-boom