From 601bf7ad961f7b23b7ee3af2b1c23577dd33e7f4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 31 Jul 2024 08:40:02 +0200 Subject: [PATCH] Fix hotkeys detection --- client/src/app/core/hotkeys/hotkeys.service.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/client/src/app/core/hotkeys/hotkeys.service.ts b/client/src/app/core/hotkeys/hotkeys.service.ts index 2fb192749..ec36554e2 100644 --- a/client/src/app/core/hotkeys/hotkeys.service.ts +++ b/client/src/app/core/hotkeys/hotkeys.service.ts @@ -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() + } + }) } })