McTibetimWeb - v0.1.0
    Preparing search index...

    Implements the Dzongkha keyboard layout.

    Originating from the Dzongkha Development Commission, this is the official standardized keyboard layout of Bhutan. It is primarily used by the people of Bhutan and those writing in Dzongkha. Because the language requires a massive number of characters, consonants, and symbols, this layout utilizes four layers (Normal, Shift, Alt, Shift+Alt) to map everything onto a standard keyboard.

    Implements

    Index

    Constructors

    Properties

    altKeyMap: Map<string, string> = ...
    keymap: Map<string, string> = ...
    layoutId: "dzongkha" = 'dzongkha'

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

    layoutName: "Dzongkha" = 'Dzongkha'

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

    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.