ink-cartridge
    Preparing search index...

    Interface KeyboardProcessorProps<TComponent>

    Per-instance custom processor injection for the engine.

    Supports the same positioning as KeyboardEngine.addProcessor:

    • { processor, target, position } — insert before/after a built-in processor
    • { processor, index } — insert at a 0-based position
    • { processor } — append to the end of the chain
    interface KeyboardProcessorProps<TComponent> {
        index?: number;
        position?: "before" | "after";
        processor: PipelineProcessor<TComponent>;
        target?: BuiltinProcessorId;
    }

    Type Parameters

    • TComponent
    Index
    index?: number

    Insert at this 0-based index. Overrides target/position.

    position?: "before" | "after"

    Insert before or after target.

    The custom processor to inject into the pipeline.

    Target built-in processor ID. Use with position.