Переглянути джерело

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

tags/0.6.6
zxhlyh 1 рік тому
джерело
коміт
05cab85579
Аккаунт користувача з таким Email не знайдено

+ 6
- 3
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 {

Завантаження…
Відмінити
Зберегти