onShortcut([callback], [remove])

Class: TextArea. Method inherited from UIComponent.

Description:

Gets, registers or unregisters a handler function for component's ShortcutEvent when a shortcut is invoked.

Parameters:

Name Type Default Description

[callback]

function

The event handler function that receives a ShortcutEvent object. Pass null to unregister all handler functions.

[remove]

boolean

false

Set to true to unregister the event handler.

Returns:

Type: Array.<function()> | UIComponent