Represents a block of key actions that can be executed

Constructors

Accessors

Methods

  • Adds a key action to the block.

    Parameters

    • scanCode: number

      The scan code of the key.

    • Optional keyAction: KeyAction

      The key action to perform. Default is KeyAction.PressAndRelease.

    Returns KeySynthesizeBlock

  • Adds a key action to the block.

    Parameters

    • virtualKey: number

      The virtual key code of the key.

    • Optional keyAction: KeyAction

      The key action to perform. Default is KeyAction.PressAndRelease.

    Returns KeySynthesizeBlock

  • Clears all stored key actions.

    Returns void

  • Executes the block and synthesizes all stored key actions.

    Returns void

Generated using TypeDoc