mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 04:35:56 +08:00
fix: can not input R when debug (#18323)
This commit is contained in:
parent
28ffe7e3db
commit
b96ecd072a
@ -5,7 +5,7 @@ import {
|
|||||||
useRef,
|
useRef,
|
||||||
useState,
|
useState,
|
||||||
} from 'react'
|
} from 'react'
|
||||||
import { useKeyPress } from 'ahooks'
|
|
||||||
import { RiCloseLine, RiEqualizer2Line } from '@remixicon/react'
|
import { RiCloseLine, RiEqualizer2Line } from '@remixicon/react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
import { useNodes } from 'reactflow'
|
import { useNodes } from 'reactflow'
|
||||||
@ -48,12 +48,6 @@ const DebugAndPreview = () => {
|
|||||||
chatRef.current.handleRestart()
|
chatRef.current.handleRestart()
|
||||||
}
|
}
|
||||||
|
|
||||||
useKeyPress('shift.r', () => {
|
|
||||||
handleRestartChat()
|
|
||||||
}, {
|
|
||||||
exactMatch: true,
|
|
||||||
})
|
|
||||||
|
|
||||||
const [panelWidth, setPanelWidth] = useState(420)
|
const [panelWidth, setPanelWidth] = useState(420)
|
||||||
const [isResizing, setIsResizing] = useState(false)
|
const [isResizing, setIsResizing] = useState(false)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user