1
0
Fork 0

Fix hotkeys detection

This commit is contained in:
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

View file

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