mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix hotkeys detection
This commit is contained in:
@@ -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()
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user