Documentation Center

Command.getShortcuts

Description

Returns an array of keyboard shortcuts for this command.

When you define a keyboard shortcut in the function for this method, you might use an existing built-in keyboard shortcut. In this case, your custom command will override the built-in editor action.

Syntax

Command .getShortcuts (scope : Scope) : Array of Strings

Arguments

scope
Scope . The scope state.

Return Value

Array of Strings. An array of strings in the form: (Control+)?(Alt+)?(Shift+)?key. For example: ["Control+Shift+F2", "Control+Alt+N"].