Fix hotkeys detection

pull/6527/head
Chocobozzz 2024-07-31 08:40:02 +02:00
parent a9d08d2646
commit 601bf7ad96
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 7 additions and 5 deletions

View File

@ -66,12 +66,14 @@ export class HotkeysService {
return
}
const result = hotkey.callback.apply(this, [ event, combo ])
this.zone.run(() => {
const result = hotkey.callback.apply(this, [ event, combo ])
if (result === false) {
event.preventDefault()
event.stopPropagation()
}
if (result === false) {
event.preventDefault()
event.stopPropagation()
}
})
}
})