@openvanilla/mcbopomofoweb
    Preparing search index...

    Encapsulates the keys accepted by KeyHandler. This class never attempts to represent all key states that a generic input method framework desires to handle. Instead, this class only reflects the keys KeyHandler will handle.

    This is not always a perfect representation (for example, shift muddles the picture), but is sufficient for KeyHandler's needs.

    Index

    Constructors

    • Parameters

      • ascii: string = ""
      • name: KeyName = KeyName.UNKNOWN
      • shiftPressed: boolean = false

        If the Shift modifier is pressed.

      • ctrlPressed: boolean = false

        If the Control modifier is pressed.

      • isNumpadKey: boolean = false

        If the key is on the Numpad.

      Returns Key

    Properties

    ascii: string = ""
    ctrlPressed: boolean = false

    If the Control modifier is pressed.

    isNumpadKey: boolean = false

    If the key is on the Numpad.

    name: KeyName = KeyName.UNKNOWN
    shiftPressed: boolean = false

    If the Shift modifier is pressed.

    Accessors

    Methods