moveActiveCellByBlock method
UserSelectionState
moveActiveCellByBlock(
- IntVector2 getNextCoordinateInCellsBlock(
- IntVector2 coordinate
Converts the primarySelection's originCell into a CellUserSelectionModel and moves it in a given AxisDirection by a block of cells.
The only constraints applied to the new coordinate are that the new coordinates must be positive.
See also:
TableShortcuts
andTableActions
where the shortcuts are mapped into actions that allow the user to expand the last selection
Implementation
UserSelectionState moveActiveCellByBlock(
IntVector2 Function(IntVector2 coordinate) getNextCoordinateInCellsBlock,
) {
final newAnchor = getNextCoordinateInCellsBlock(
primarySelection.anchorCoordinate,
);
return resetSelectionsToACellSelection(
anchor: newAnchor,
focus: newAnchor,
);
}