Skip to content

Interface: KeyLayer<S, C>

Defined in: modal/keys.ts:89

Type Parameters

S

S

C

C

Properties

active?

optional active?: (state) => boolean

Defined in: modal/keys.ts:93

Layer participates only while this holds (omitted = always).

Parameters

state

S

Returns

boolean


bindings

bindings: readonly KeyBinding<S, C>[]

Defined in: modal/keys.ts:94


fallback

fallback: "swallow" | "pass"

Defined in: modal/keys.ts:100

The layer's answer for keys it binds nothing for: "pass" hands them to the next layer down (and ultimately the page); "swallow" claims the whole keyboard (a blocking dialog). Mandatory on purpose.


name

name: string

Defined in: modal/keys.ts:91

Names appear in tests and traces.