Drag Handle
Nodes that move only when dragged by a designated handle: a side grip on one card, the title bar on the other. Setting UseCustomDragHandle on a node and placing a BlowDragHandle in its template leaves the rest of the body free for content that needs the pointer itself.
Press Tab to move between the nodes and edges of the diagram.
Press Enter or Space to select it, Shift with Enter to add it to the selection, the arrow keys to move the selected nodes, Delete to remove them and Escape to clear the selection. Press C to start a connection from it.
Press Enter or Space to select it, Delete to remove it and Escape to clear the selection. Press C to move its end to another node.
bit BlowTry it
- Drag the ⋮⋮ grip of the first card, or the title bar of the second: the node moves.
- Drag the body of either card: the node is selected but stays put.
- Open the status list and pick a value: the body's pointer is free for its own content, so nothing moves.
- Drag the plain node at the bottom from any point on it, for comparison.
How it works
UseCustomDragHandle = trueon a node stops its body from starting a drag. Pressing the body still selects the node.BlowDragHandlemarks the part of the template that does start a drag. It can wrap any content, anywhere in the template - a narrow grip on the first card, the whole title bar on the second - andClassstyles it; the stylesheet gives it the grab cursor.- Since the body never drags, a control in it needs no
nodragclass: the status<select>keeps its pointer, and graph keys are ignored while it has focus. - The bottom node has neither the flag nor a template branch of its own: it is a built-in default node, which drags from anywhere.
- The card bodies set
cursor: default, so only the handles show the grab cursor that every node gets from the stylesheet.