fix(windows): more natural key defaults
This commit is contained in:
@@ -8,6 +8,7 @@ import {
|
|||||||
infiniteExtent,
|
infiniteExtent,
|
||||||
type NodeOrigin,
|
type NodeOrigin,
|
||||||
type Viewport,
|
type Viewport,
|
||||||
|
isMacOs,
|
||||||
} from '@xyflow/system';
|
} from '@xyflow/system';
|
||||||
|
|
||||||
import Attribution from '../../components/Attribution';
|
import Attribution from '../../components/Attribution';
|
||||||
@@ -108,8 +109,8 @@ const ReactFlow = forwardRef<ReactFlowRefType, ReactFlowProps>(
|
|||||||
selectionOnDrag = false,
|
selectionOnDrag = false,
|
||||||
selectionMode = SelectionMode.Full,
|
selectionMode = SelectionMode.Full,
|
||||||
panActivationKeyCode = 'Space',
|
panActivationKeyCode = 'Space',
|
||||||
multiSelectionKeyCode = 'Meta',
|
multiSelectionKeyCode = isMacOs() ? 'Meta' : 'Control',
|
||||||
zoomActivationKeyCode = 'Meta',
|
zoomActivationKeyCode = isMacOs() ? 'Meta' : 'Control',
|
||||||
snapToGrid = false,
|
snapToGrid = false,
|
||||||
snapGrid = initSnapGrid,
|
snapGrid = initSnapGrid,
|
||||||
onlyRenderVisibleElements = false,
|
onlyRenderVisibleElements = false,
|
||||||
|
|||||||
Reference in New Issue
Block a user