-
-
Notifications
You must be signed in to change notification settings - Fork 421
Open
Description
This is Demo.I don't understand why the unbinding failed.
let mark = false
const kVeh = ['1','2','3','4']
kVeh.forEach((v)=>{
hotkeys(v,(event, handler)=>{
console.log('handler.key',handler.key)
mark = true
})
})
setInterval(()=>{
console.log('mark',mark)
if(mark){
/* good **/
// hotkeys.unbind()
/* bad **/
hotkeys.unbind('1', (event, handler) => {
console.log('unbind 1 key', handler.key)
return false
})
}
},1000)
Metadata
Metadata
Assignees
Labels
No labels