keymaster的使用
安装:
npm intall keymaster -S
使用:
import key from 'keymaster'
key('a',function(){
console.log('您自定义了快捷键a)
return false
})
key('ctrl+a', function(){
console.log('您定义了组件快捷键 ctrl + a')
return false
})
key('ctrl+a,command+a', function(){
console.log('您定义
原创
2020-12-25 13:18:51 ·
1221 阅读 ·
0 评论