mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 07:29:04 +08:00
fix: workflow delete node shortcut (#7076)
This commit is contained in:
parent
67a2f14cef
commit
1571a8afd4
@ -264,7 +264,12 @@ const Workflow: FC<WorkflowProps> = memo(({
|
||||
|
||||
const { shortcutsEnabled: workflowHistoryShortcutsEnabled } = useWorkflowHistoryStore()
|
||||
|
||||
useKeyPress(['delete', 'backspace'], handleNodesDelete)
|
||||
useKeyPress(['delete', 'backspace'], (e) => {
|
||||
if (isEventTargetInputArea(e.target as HTMLElement))
|
||||
return
|
||||
|
||||
handleNodesDelete()
|
||||
})
|
||||
useKeyPress(['delete', 'backspace'], handleEdgeDelete)
|
||||
useKeyPress(`${getKeyboardKeyCodeBySystem('ctrl')}.c`, (e) => {
|
||||
if (isEventTargetInputArea(e.target as HTMLElement))
|
||||
|
Loading…
x
Reference in New Issue
Block a user