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

pull/4005/head
zxhlyh 2 years ago committed by GitHub
parent b72fbe200d
commit 05cab85579
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -712,9 +712,10 @@ export const useNodesInteractions = () => {
const { const {
setClipboardElements, setClipboardElements,
shortcutsDisabled, shortcutsDisabled,
showFeaturesPanel,
} = workflowStore.getState() } = workflowStore.getState()
if (shortcutsDisabled) if (shortcutsDisabled || showFeaturesPanel)
return return
const { const {
@ -736,9 +737,10 @@ export const useNodesInteractions = () => {
const { const {
clipboardElements, clipboardElements,
shortcutsDisabled, shortcutsDisabled,
showFeaturesPanel,
} = workflowStore.getState() } = workflowStore.getState()
if (shortcutsDisabled) if (shortcutsDisabled || showFeaturesPanel)
return return
const { const {
@ -803,9 +805,10 @@ export const useNodesInteractions = () => {
const { const {
shortcutsDisabled, shortcutsDisabled,
showFeaturesPanel,
} = workflowStore.getState() } = workflowStore.getState()
if (shortcutsDisabled) if (shortcutsDisabled || showFeaturesPanel)
return return
const { const {

Loading…
Cancel
Save