Class KeyboardShortcutManager

Allows adding/changing keyboard shortcuts. This class provides static methods for registering default shortcuts. An instance of this class must be used to access or change keyboard shortcuts.

Methods

  • Get the default keybindings associated with a keyboard shortcut.

    Any keybinding in the resultant list, by default, can trigger the function associated with the shortcut.

    Parameters

    • shortcutId: string

    Returns KeyBinding[]

  • Get a description of a keyboard shortcut.

    localeList, if given, attempts to

    Parameters

    • id: string
    • Optional localeList: readonly string[]

    Returns null | string

Generated using TypeDoc

OpenSource licenses