import hotkey from '@ctsy/hotkey'//添加监听hotkey.listen('ctrl+a','用户全选',(event,handler)=>{//<!-- do what you want -->})//移除监听hotkey.unlisten('ctrl+a','用户全选')//移除所有hotkey.removeAll()//添加键盘事件到禁用列表中hotkey.deny('f5')//移除禁用列表hotkey.removeDeny('f5')
