diff --git a/packages/editor-ui/src/views/NodeView.v2.vue b/packages/editor-ui/src/views/NodeView.v2.vue index 55048ab9fb..be23b5c794 100644 --- a/packages/editor-ui/src/views/NodeView.v2.vue +++ b/packages/editor-ui/src/views/NodeView.v2.vue @@ -242,7 +242,7 @@ const fallbackNodes = computed(() => ); const keyBindingsEnabled = computed(() => { - return !ndvStore.activeNode; + return !ndvStore.activeNode && uiStore.activeModals.length === 0; }); /** @@ -551,11 +551,11 @@ async function onCopyNodes(ids: string[]) { } async function onClipboardPaste(plainTextData: string): Promise { - if (getNodeViewTab(route) !== MAIN_HEADER_TABS.WORKFLOW) { - return; - } - - if (!checkIfEditingIsAllowed()) { + if ( + getNodeViewTab(route) !== MAIN_HEADER_TABS.WORKFLOW || + !keyBindingsEnabled.value || + !checkIfEditingIsAllowed() + ) { return; }