McTibetimWeb - v0.1.0
    Preparing search index...

    Maps DOM keyboard events into the internal Key representation.

    Index

    Constructors

    Properties

    lowerKeyCodeAsciiMapping: Map<string, string> = ...
    upperKeyCodeAsciiMapping: Map<string, string> = ...

    Methods

    • Converts a browser keyboard event into a normalized Key.

      Parameters

      • event: KeyboardEvent

        The browser keyboard event.

      Returns Key

      The converted input-method key.

    • Translates simple virtual keyboard events into internal Key instances.

      Parameters

      • button: string

        The character or key name pressed.

      • isShift: boolean

        Whether Shift is pressed.

      • isCtrl: boolean

        Whether Control is pressed.

      • isAlt: boolean

        Whether Alt is pressed.

      Returns Key

      The generated Key instance.