Add example.

pull/15/head
jaywcjlove 7 years ago
parent 7c81432e7c
commit ed8b6b8b42

@ -104,6 +104,14 @@ hotkeys('shift+a,alt+d, w', function(e){
```js
// 定义a快捷键
hotkeys('f5', function(event,handler){
//event.srcElement: input
//event.target: input
// 阻止Widnows系统下的默认刷新事件
event.preventDefault()
alert('你按下了 F5 键!')
});
// 定义a快捷键
hotkeys('a', function(event,handler){
//event.srcElement: input
//event.target: input

Loading…
Cancel
Save