Skip to main content

classify

Function classify 

Source
pub fn classify(
    event: &InputEvent,
    bindings: &KeyBindings,
    ctx: &InputCtx,
) -> Classification
Expand description

Resolve one raw input event into its Classification under the editor screen’s input precedence. Pure: same event + bindings + ctx, same verdict.

Runs the precedence ladder, then applies the editor claim filter — an intent the current holder does not allow is rewritten so the event reaches the holder instead. With no claim held the filter is the identity, which is why the ladder’s own tests are unaffected by it.