Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: workflow disable shortcuts when feature panel occured (#4001)

zxhlyh05cab85579da
diff --git a/web/app/components/workflow/hooks/use-nodes-interactions.ts b/web/app/components/workflow/hooks/use-nodes-interactions.ts
index 2244bdb43cc..d1ae373adff 100644
--- a/web/app/components/workflow/hooks/use-nodes-interactions.ts
+++ b/web/app/components/workflow/hooks/use-nodes-interactions.ts
@@ -712,9 +712,10 @@ export const useNodesInteractions = () => {
const {
setClipboardElements,
shortcutsDisabled,
+ showFeaturesPanel,
} = workflowStore.getState()
- if (shortcutsDisabled)
+ if (shortcutsDisabled || showFeaturesPanel)
return
const {
@@ -736,9 +737,10 @@ export const useNodesInteractions = () => {
const {
clipboardElements,
shortcutsDisabled,
+ showFeaturesPanel,
} = workflowStore.getState()
- if (shortcutsDisabled)
+ if (shortcutsDisabled || showFeaturesPanel)
return
const {
@@ -803,9 +805,10 @@ export const useNodesInteractions = () => {
const {
shortcutsDisabled,
+ showFeaturesPanel,
} = workflowStore.getState()
- if (shortcutsDisabled)
+ if (shortcutsDisabled || showFeaturesPanel)
return
const {