Interface: IKeyboardShortcut

IKeyboardShortcut

Properties

name

name: string

Keyboard shortcut name/action

Methods

clearOverride()

clearOverride(): void

Resets any existing override, reverting the shortcut back to its original function

Returns

void


disable()

disable(): void

Makes the keyboard shortcut listener inactive

Returns

void


enable()

enable(): void

Makes the keyboard shortcut listener active

Returns

void


rebindShortcuts()

rebindShortcuts(): void

Re-bind shortcuts. Primarily used by keyboard shortcut manager to bind shortcuts when a new IFrame has been added to the mousetrap collection

Returns

void


setOverride()

setOverride(overrideSource, overrideFn): void

Sets the specified action to be performed in place of the default action when the shortcut is triggered

Parameters

overrideSource: string

Identifier indicating the source of the override

overrideFn

The action to be performed instead of the default action.

Returns

void