File tree Expand file tree Collapse file tree
src/cmem/react-flow/ReactFlow Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React , { ReactElement , Ref } from "react" ;
22import { KeyCode as KeyCodeV9 } from "react-flow-renderer" ;
33import { KeyCode as KeyCodeV10 } from "react-flow-renderer-lts" ;
4+ import { KeyCode as KeyCodeV12 } from "@xyflow/react" ;
45
56import { CLASSPREFIX as eccgui } from "../../../configuration/constants" ;
67import { ReactFlowMarkers } from "../../../extensions/react-flow/markers/ReactFlowMarkers" ;
@@ -165,7 +166,12 @@ const ReactFlowExtendedPlain = <T extends ReactFlowExtendedProps>({
165166 } ;
166167 break ;
167168 case "v12" :
168- // FIXME: necessary for v12?
169+ keyCodeConfig = {
170+ selectionKeyCode : hotKeysDisabled ? null : ( selectionKeyCode as KeyCodeV12 ) ,
171+ deleteKeyCode : hotKeysDisabled ? null : ( deleteKeyCode as KeyCodeV12 ) ,
172+ multiSelectionKeyCode : hotKeysDisabled ? null : ( multiSelectionKeyCode as KeyCodeV12 ) ,
173+ zoomActivationKeyCode : hotKeysDisabled ? null : ( zoomActivationKeyCode as KeyCodeV12 ) ,
174+ } ;
169175 break ;
170176 }
171177
You can’t perform that action at this time.
0 commit comments