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: can not input R when debug (#18323)

crazywoolab96ecd072a76
diff --git a/web/app/components/workflow/panel/debug-and-preview/index.tsx b/web/app/components/workflow/panel/debug-and-preview/index.tsx
index 53c91299a2c..c33a6355f2d 100644
--- a/web/app/components/workflow/panel/debug-and-preview/index.tsx
+++ b/web/app/components/workflow/panel/debug-and-preview/index.tsx
@@ -5,7 +5,7 @@ import {
useRef,
useState,
} from 'react'
-import { useKeyPress } from 'ahooks'
+
import { RiCloseLine, RiEqualizer2Line } from '@remixicon/react'
import { useTranslation } from 'react-i18next'
import { useNodes } from 'reactflow'
@@ -48,12 +48,6 @@ const DebugAndPreview = () => {
chatRef.current.handleRestart()
}
- useKeyPress('shift.r', () => {
- handleRestartChat()
- }, {
- exactMatch: true,
- })
-
const [panelWidth, setPanelWidth] = useState(420)
const [isResizing, setIsResizing] = useState(false)