A newer version of this page is available. Switch to the current version.

RichEditCommands.assignShortcut Property

Gets a command to assign a shortcut to the specified client command.


readonly assignShortcut: AssignShortcutCommand

Property Value

Type Description

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), 

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