mirror of https://github.com/Chocobozzz/PeerTube
Fix hotkeys detection
parent
a9d08d2646
commit
601bf7ad96
|
@ -66,12 +66,14 @@ export class HotkeysService {
|
|||
return
|
||||
}
|
||||
|
||||
this.zone.run(() => {
|
||||
const result = hotkey.callback.apply(this, [ event, combo ])
|
||||
|
||||
if (result === false) {
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue