@mocanvas/mocanvas · function

useSelectedShapesAnnouncer

declare function useSelectedShapesAnnouncer(): void

Announce the selection whenever it changes.

Says how many shapes are selected and, for a single shape, what kind it is — which is the minimum a keyboard user needs to know that their last keystroke did what they meant.

Under ToggleEnhancedA11yModeItem it also reads back position and size. That is deliberately not the default: it is what a person wants when they are placing something by keyboard, and unbearable when they are only tabbing through a board.

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.