Skip to main content
cut

RichEditCommands.assignShortcut Property

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

Declaration

get assignShortcut(): AssignShortcutCommand

Property Value

Type Description
AssignShortcutCommand

An object that provides methods that execute the command and check its state.

Remarks

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