From 46ca90798e0071edce5dfd65033e4fc1fb394391 Mon Sep 17 00:00:00 2001 From: Nick Skriabin Date: Fri, 28 Nov 2025 13:33:21 +0000 Subject: [PATCH] Fix hotkeys initialiaztion --- web/libs/editor/src/stores/Annotation/Annotation.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/libs/editor/src/stores/Annotation/Annotation.js b/web/libs/editor/src/stores/Annotation/Annotation.js index 7f008cfbfa30..560b9b04ac08 100644 --- a/web/libs/editor/src/stores/Annotation/Annotation.js +++ b/web/libs/editor/src/stores/Annotation/Annotation.js @@ -977,7 +977,8 @@ const _Annotation = types // } // }; - Hotkey.setScope(Hotkey.DEFAULT_SCOPE); + const { enableHotkeys } = self.store.settings; + Hotkey.setScope(enableHotkeys ? Hotkey.DEFAULT_SCOPE : "__none__"); }, createResult(areaValue, resultValue, control, object, skipAfrerCreate = false, additionalStates = []) {