@mocanvas/editor · function

popFocusedGroupId

declare function popFocusedGroupId(editor: Editor): void

Back out one level of drill-in: focus the focused group's own parent group, or the page when there is none.

The escape-key behaviour. Also selects the group being left, so pressing escape twice from inside a group leaves you with the group selected and then with nothing selected — the progression people expect.

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.