Skip to content

Function: blurExitTarget()

blurExitTarget<M>(table, mode): M | null

Defined in: modal/mode.ts:75

Where window blur steps out to from mode, or null when blur means nothing here (the common case). A mode opts in with ModeSpec.blurExits; the target is its escParent — blur is the page-focus sibling of Esc's one-level step-out, never a jump to root. Bind it once per surface: on the window's blur event, transition to the returned mode when non-null (however the app performs transitions — an engine verb, a signal write) instead of hand-writing per-mode listeners.

Type Parameters

M

M extends string

Parameters

table

ModeTable<M>

mode

M

Returns

M | null