Skip to content

Commit a879e46

Browse files
fix: BROS-486: Fix hotkeys initialization (#8909)
Co-authored-by: nick-skriabin <nick-skriabin@users.noreply.github.com>
1 parent e3ed769 commit a879e46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/libs/editor/src/stores/Annotation/Annotation.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,8 @@ const _Annotation = types
977977
// }
978978
// };
979979

980-
Hotkey.setScope(Hotkey.DEFAULT_SCOPE);
980+
const { enableHotkeys } = self.store.settings;
981+
Hotkey.setScope(enableHotkeys ? Hotkey.DEFAULT_SCOPE : "__none__");
981982
},
982983

983984
createResult(areaValue, resultValue, control, object, skipAfrerCreate = false, additionalStates = []) {

0 commit comments

Comments
 (0)