mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
fix(editor): Fix condition for allowing keyboard shortcuts and pasting on new canvas (no-changelog) (#11082)
This commit is contained in:
@@ -242,7 +242,7 @@ const fallbackNodes = computed<INodeUi[]>(() =>
|
||||
);
|
||||
|
||||
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<void> {
|
||||
if (getNodeViewTab(route) !== MAIN_HEADER_TABS.WORKFLOW) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!checkIfEditingIsAllowed()) {
|
||||
if (
|
||||
getNodeViewTab(route) !== MAIN_HEADER_TABS.WORKFLOW ||
|
||||
!keyBindingsEnabled.value ||
|
||||
!checkIfEditingIsAllowed()
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user