@openvanilla/mcfoximmweb
    Preparing search index...

    Applies input-method key semantics to the current InputState.

    KeyHandler is responsible for editing the composing buffer, moving the cursor, navigating candidates, and emitting the next state that InputController should apply.

    Index
    • Handles one key against the current state.

      Parameters

      • key: Key

        The normalized key to handle.

      • state: InputState

        The current input state.

      • stateCallback: (state: InputState) => void

        Called with each resulting state transition.

      • errorCallback: () => void

        Called when the key is invalid for the current state.

      Returns boolean

      True if the key was consumed by the input method.