feat: Support shortcut keys to copy nodes #3283 (#3293)

### What problem does this PR solve?

feat: Support shortcut keys to copy nodes #3283

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-11-08 15:50:01 +08:00
committed by GitHub
parent 8b6e272197
commit 63f7d3bae2
5 changed files with 79 additions and 43 deletions

View File

@ -5,7 +5,7 @@ import { ReactFlowProvider } from 'reactflow';
import FlowCanvas from './canvas';
import Sider from './flow-sider';
import FlowHeader from './header';
import { useFetchDataOnMount } from './hooks';
import { useCopyPaste, useFetchDataOnMount } from './hooks';
const { Content } = Layout;
@ -18,6 +18,7 @@ function RagFlow() {
} = useSetModalState();
useFetchDataOnMount();
useCopyPaste();
return (
<Layout>