McTibetimWeb - v0.1.0
    Preparing search index...

    Class defaultAbstract

    Abstract base class for all keyboard layout implementations.

    Each concrete layout provides a unique identifier, a human-readable name, a key-handling routine that drives the state machine, and a map of key display names for the on-screen keyboard.

    Hierarchy (View Summary)

    Implemented by

    Index

    Constructors

    Accessors

    Methods

    Constructors

    Accessors

    • get layoutId(): string

      Unique identifier for this layout (e.g. 'sambhota_keymap_one').

      Returns string

    • get layoutName(): string

      Human-readable name for this layout (e.g. 'Sambhota Keymap #1').

      Returns string

    Methods

    • Returns display names for keys given the current modifier state.

      Parameters

      • shift: boolean

        Whether the Shift modifier is active.

      • ctrl: boolean

        Whether the Control modifier is active.

      • alt: boolean

        Whether the Alt modifier is active.

      Returns Map<string, string>

      A map from key character to its Tibetan display name.

    • Handles a key event within the given state.

      Parameters

      • key: Key

        The key to handle.

      • state: InputState

        The current input state.

      • stateCallback: (newState: InputState) => void

        Called with the new state when a transition occurs.

      • errorCallback: () => void

        Called when an unrecoverable input error is detected.

      Returns boolean

      true if the key was consumed by this layout.