Class Shortcut

The Shortcut class is utilized to handle global shortcut keys for a application.

Hierarchy

  • Shortcut

Constructors

Properties

Methods

Constructors

  • Constructs an event watcher for shortcut keys.

    Returns Shortcut

Properties

s_eventWatcher: EventWatcher

Methods

  • Adds a callback function that's going to be called when the user presses the shortcut key named name.

    Parameters

    • name: string
    • callback: (() => void)
        • (): void
        • Returns void

    Returns void

  • Removes the specified watcher for the shortcut key named name.

    Parameters

    • name: string

    Returns void

Generated using TypeDoc