@mocanvas/mocanvas · function
declare function useTldrawUiOrientation(): TldrawUiOrientationContext & {
prevKey: string;
nextKey: string;
}The current orientation, plus the two keys that move focus along it.
prevKey/nextKey are already direction-corrected, so a roving-focus
handler can compare event.key against them without knowing whether it is
in a right-to-left locale.
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.