@mocanvas/editor · function

selectAdjacentShape

declare function selectAdjacentShape(editor: Editor, direction: TLAdjacentDirection): void

Move the selection one shape in direction, keeping it a single selection.

With nothing selected the first shape in reading order is selected instead, which is what makes arrow keys usable as a way *into* a board and not only as a way around one.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.