@mocanvas/editor · type

TLUiEventSource

type TLUiEventSource = "toolbar" | "kbd" | "menu" | "context-menu" | "unknown"

Where a UI item was activated from. Passed to onSelect so an app can tell a toolbar click from a keyboard shortcut when it reports analytics.

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.