Skip to content

Commit

Permalink
set partial selection mode (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
lihebi authored Aug 15, 2023
1 parent 1e6d7ea commit aed1952
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/src/components/Canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import ReactFlow, {
XYPosition,
useStore as useRfStore,
useKeyPress,
SelectionMode,
} from "reactflow";
import "reactflow/dist/style.css";

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

0 comments on commit aed1952

Please sign in to comment.