I am using the RealtimeDragSelectingTool as such
'toolManager.dragSelectingTool': GraphObject.make(
RealtimeDragSelectingTool,
{
isPartialInclusion: true,
},
{
box: GraphObject.make(
Part,
{ layerName: 'Tool', selectable: false },
GraphObject.make(go.Shape, 'RoundedRectangle', {
name: 'SHAPE',
fill: '#007DBC1A',
stroke: '#007DBC',
strokeWidth: 1,
strokeDashArray: [10, 5],
parameter1: 12,
}),
),
},
),
I’m curious how I would go about implementing the following user interaction: While the box is being dragged, the user can press and hold the spacebar to enable the mouse to move the entire box. Once they let off the spacebar, the box should continue to draw as normal.
I imagine you would utilize the doKeyDown() and doKeyUp() methods of RealtimeDragSelectingTool but any ideas for how I could implement this behavior? Thanks in advance for any help!