extend

fun extend(target: T, orderedItems: List<T>)(source)

Selects the contiguous range between the current anchor and target within orderedItems. When no anchor is set or either endpoint isn't in the ordered list, falls back to select. The anchor stays put so subsequent shift-clicks re-extend from the same starting point.