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