Skip to content

Commit aed1952

Browse files
authored
set partial selection mode (#454)
1 parent 1e6d7ea commit aed1952

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/src/components/Canvas.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import ReactFlow, {
2828
XYPosition,
2929
useStore as useRfStore,
3030
useKeyPress,
31+
SelectionMode,
3132
} from "reactflow";
3233
import "reactflow/dist/style.css";
3334

@@ -613,6 +614,7 @@ function CanvasImpl() {
613614
// disable node delete on backspace when the user is a guest.
614615
deleteKeyCode={isGuest ? null : "Backspace"}
615616
multiSelectionKeyCode={isMac ? "Meta" : "Control"}
617+
selectionMode={SelectionMode.Partial}
616618
// TODO restore previous viewport
617619
defaultViewport={{ zoom: 1, x: 0, y: 0 }}
618620
proOptions={{ hideAttribution: true }}

0 commit comments

Comments
 (0)