Update README.md to reflect option.splitKey (#106)

pull/109/head
Alex Chuchunkov 6 years ago committed by 小弟调调™
parent 44283e7c1e
commit 4d9bd7808d

@ -152,6 +152,7 @@ hotkeys('*','wcj', function(event){
- `element<HTMLElement>`
- `keyup<Boolean>`
- `keydown<Boolean>`
- `splitKey<string>` (default is `+`)
```js
hotkeys('o, enter', {
@ -160,6 +161,14 @@ hotkeys('o, enter', {
}, function(){
console.log('do something else');
});
hotkeys('ctrl-+', {splitKey: '-'}, function(e) {
console.log('you pressed ctrl and +');
});
hotkeys('+', {splitKey: '-'}, function(e){
console.log('you pressed +');
})
```
## API REFERENCE

Loading…
Cancel
Save