fix(editor): Prevent keyboard shortcuts when ndv is open in new canvas (no-changelog) (#10601)

This commit is contained in:
Alex Grozav
2024-08-29 15:25:49 +03:00
committed by GitHub
parent 95da4d4797
commit 78f34f66c6
4 changed files with 133 additions and 24 deletions

View File

@@ -221,6 +221,10 @@ const fallbackNodes = computed<INodeUi[]>(() =>
],
);
const keyBindingsEnabled = computed(() => {
return !ndvStore.activeNode;
});
/**
* Initialization
*/
@@ -1483,6 +1487,7 @@ onDeactivated(() => {
:fallback-nodes="fallbackNodes"
:event-bus="canvasEventBus"
:read-only="isCanvasReadOnly"
:key-bindings="keyBindingsEnabled"
@update:nodes:position="onUpdateNodesPosition"
@update:node:position="onUpdateNodePosition"
@update:node:active="onSetNodeActive"