Function: resolveKey()
resolveKey<
S,C>(stack,state,key,phase,repeat):KeyClaim<C>
Defined in: modal/keys.ts:109
Resolve one key event through the stack, top-down. The first non-"pass" answer wins; a matched binding with no handler for this phase passes (a down-only binding does not eat keyups). If every active layer passes, the page keeps the event.
Type Parameters
S
S
C
C
Parameters
stack
readonly KeyLayer<S, C>[]
state
S
key
string
phase
"down" | "up"
repeat
boolean
Returns
KeyClaim<C>