aspnet-js-richeditcommands-b8439b8d.md
Gets a command to assign a shortcut to the specified client command.
get assignShortcut(): AssignShortcutCommand
| Type | Description |
|---|---|
| AssignShortcutCommand |
An object that provides methods that execute the command and check its state.
|
Call the execute(keyCode, callback) method to invoke the command. The method checks the command state (obtained via the getState method) to determine whether the action can be performed.
richEdit.commands.assignShortcut.execute(ASPxClientUtils.GetShortcutCode(ASPx.KeyCode.Key_u, false, false, false),
function(){richEdit.commands.updateField.execute()})
You can not assign custom shortcuts to the RichEditCommands.copy, RichEditCommands.paste and RichEditCommands.cut commands.
Refer to the following section for more information: Client Commands.
See Also