RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
feat: Support shortcut keys to delete nodes #3283 (#3284)
balibabua2153d61ced3
diff --git a/web/src/pages/flow/canvas/index.tsx b/web/src/pages/flow/canvas/index.tsxindex eb45b1c0d1..2794ff5262 100644--- a/web/src/pages/flow/canvas/index.tsx+++ b/web/src/pages/flow/canvas/index.tsx@@ -11,7 +11,6 @@ import { Operator } from '../constant';import FlowDrawer from '../flow-drawer';import {useHandleDrop,- useHandleKeyUp,useSelectCanvasData,useShowDrawer,useValidateConnection,@@ -87,7 +86,6 @@ function FlowCanvas({ chatDrawerVisible, hideChatDrawer }: IProps) {const { onDrop, onDragOver, setReactFlowInstance } = useHandleDrop();- const { handleKeyUp } = useHandleKeyUp();useWatchNodeFormDataChange();return (@@ -127,7 +125,7 @@ function FlowCanvas({ chatDrawerVisible, hideChatDrawer }: IProps) {onNodeClick={onNodeClick}onPaneClick={onPaneClick}onInit={setReactFlowInstance}- onKeyUp={handleKeyUp}+ // onKeyUp={handleKeyUp}onSelectionChange={onSelectionChange}nodeOrigin={[0.5, 0]}isValidConnection={isValidConnection}@@ -142,6 +140,7 @@ function FlowCanvas({ chatDrawerVisible, hideChatDrawer }: IProps) {stroke: 'rgb(202 197 245)',},}}+ deleteKeyCode={['Delete', 'Backspace']}><Background /><Controls />