mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(editor): Prevent keyboard shortcuts when ndv is open in new canvas (no-changelog) (#10601)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user