ShortcutManager

ShortcutManager

new ShortcutManager()

Description:
  • Handles Keyboard Shorcuts

Source:

Methods

(static) bindGlobal(keys, callback, actionopt)

Description:
  • Method for binding global shortcut.

Source:
Parameters:
Name Type Attributes Description
keys string
callback function
action any <optional>

(static) get(cId) → {string|undefined}

Description:
  • Gets keyboard shortcuts

Source:
Parameters:
Name Type Description
cId string

The shortcut name.

Returns:

Returns the shortcut key binding.

Type
string | undefined

(static) set(cId, cShortcut)

Description:
  • Sets keyboard shortcut

Source:
Parameters:
Name Type Description
cId string

The Shortcut name.

cShortcut string

Represents the new shortcut key binding.

(static) unbind(keys)

Description:
  • Method for unbinding global shortcut.

Source:
Parameters:
Name Type Description
keys string