Back to Devexpress

Keyboard Shortcuts

aspnet-119091-components-rich-text-editor-keyboard-shortcuts.md

latest17.8 KB
Original Source

Keyboard Shortcuts

  • Jun 16, 2022
  • 8 minutes to read

The following table lists the ASPxRichEdit control’s default keyboard shortcuts and corresponding client-side commands.

The client-side commands are available via the ASPxClientRichEdit.commands property. Call the required command’s execute method to invoke it:

javascript
richEdit.commands.openFindPanel.execute();

Note, that the selection commands are stored in the ASPxClientRichEdit.selection property. You can execute the corresponding command by calling it:

javascript
richEdit.selection.goToNextLine();

You can assign custom shortcuts to the client commands using the RichEditCommands.assignShortcut command:

javascript
richEdit.commands.assignShortcut.execute(ASPxClientUtils.GetShortcutCode(ASPx.KeyCode.Key_u, false, false, false), function(){richEdit.commands.updateField.execute()})

Fields

ShortcutDescriptionClient-side commandNote
CTRL+F9Inserts an empty document field at the current positionRichEditCommands.createField
F9Updates the field’s resultRichEditCommands.updateField
ALT+F9Displays field codes instead of fieldsRichEditCommands.showAllFieldCodesThe shortcut replicates the command’s overload without parameters
SHIFT+F9Displays the selected fields’ field codesRichEditCommands.showFieldCodesThe shortcut replicates the command’s overload without parameters
CTRL+SHIFT+F9Deletes all hyperlinks in a selected rangeRichEditCommands.deleteHyperlinks
ALT+SHIFT+DInserts a DATE field displaying the current dateRichEditCommands.createDateField
ALT+SHIFT+PInserts a PAGE field displaying the current page numberRichEditCommands.createPageField
ALT+SHIFT+TInserts a TIME field displaying the current timeRichEditCommands.createTimeField

Clipboard

ShortcutDescriptionClient-side command
CTRL+C, F3 (Mac OS only)Copies the selected text to the clipboardRichEditCommands.copy
CTRL+V, F4 (Mac OS only)Inserts the text from the clipboardRichEditCommands.paste
CTRL+XCuts the selected text to the clipboardRichEditCommands.cut

Selection

ShortcutDescriptionClient-side commandNote
CTRL+ASelects the editor’s entire contentRichEditSelection.selectAll
LEFTMoves the cursor to the previous characterRichEditSelection.goToPreviousCharacterThe shortcut replicates the command’s overload with the parameter set to false
RIGHTMoves the cursor to the next characterRichEditSelection.goToNextCharacterThe shortcut replicates the command’s overload with the parameter set to false
UPMoves the cursor to the previous lineRichEditSelection.goToPreviousLineThe shortcut replicates the command’s overload with the parameter set to false
DOWNMoves the cursor to the next lineRichEditSelection.goToNextLineThe shortcut replicates the command’s overload with the parameter set to false
PAGE UPMoves the cursor to the beginning of the previous pageRichEditSelection.goToPreviousPageThe shortcut replicates the command’s overload with the parameter set to false
PAGE DOWNMoves the cursor to the beginning of the next pageRichEditSelection.goToNextPageThe shortcut replicates the command’s overload with the parameter set to false
HOMEMoves the cursor to the start of the line in which the cursor is locatedRichEditSelection.goToLineStartThe shortcut replicates the command’s overload with the parameter set to false
ENDMoves the cursor to the end of the line in which the cursor is locatedRichEditSelection.goToLineEndThe shortcut replicates the command’s overload with the parameter set to false
SHIFT+LEFTExtends the selection to the previous characterRichEditSelection.goToPreviousCharacterThe shortcut replicates the command’s overload with the parameter set to true
SHIFT+RIGHTExtends the selection to the next characterRichEditSelection.goToNextCharacterThe shortcut replicates the command’s overload with the parameter set to true
SHIFT+UPExtends the selection to the previous lineRichEditSelection.goToPreviousLineThe shortcut replicates the command’s overload with the parameter set to true
SHIFT+DOWNExtends the selection to the next lineRichEditSelection.goToNextLineThe shortcut replicates the command’s overload with the parameter set to true
SHIFT+PAGE UPExtends the selection up to the previous screenRichEditSelection.goToPreviousPageThe shortcut replicates the command’s overload with the parameter set to true
SHIFT+PAGE DOWNExtends the selection up to the next screenRichEditSelection.goToNextPageThe shortcut replicates the command’s overload with the parameter set to true
SHIFT+HOMEExtends the selection to the start of the line in which the cursor is locatedRichEditSelection.goToLineStartThe shortcut replicates the command’s overload with the parameter set to true
SHIFT+ENDExtends the selection to the end of the line in which the cursor is locatedRichEditSelection.goToLineEndThe shortcut replicates the command’s overload with the parameter set to true
CTRL+LEFTMoves the cursor to the previous wordRichEditSelection.goToPrevWordThe shortcut replicates the command’s overload with the parameter set to false
CTRL+RIGHTMoves the cursor to the next wordRichEditSelection.goToNextWordThe shortcut replicates the command’s overload with the parameter set to false
CTRL+UPMoves the cursor to the beginning of the previous paragraphRichEditSelection.goToParagraphStartThe shortcut replicates the command’s overload with the parameter set to false
CTRL+DOWNMoves the cursor to the beginning of the next paragraphRichEditSelection.goToParagraphEndThe shortcut replicates the command’s overload with the parameter set to false
CTRL+PAGE UPMoves the cursor to the beginning of the previous pageRichEditSelection.goToStartPrevPageCommandThe shortcut replicates the command’s overload with the parameter set to false
CTRL+PAGE DOWNMoves the cursor to the beginning of the next pageRichEditSelection.goToStartNextPageCommandThe shortcut replicates the command’s overload with the parameter set to false
CTRL+HOMEMoves the cursor to the start of the documentRichEditSelection.goToDocumentStartThe shortcut replicates the command’s overload with the parameter set to false
CTRL+ENDMoves the cursor to the end of the documentRichEditSelection.goToDocumentEndThe shortcut replicates the command’s overload with the parameter set to false
CTRL+SHIFT+LEFTExtends the selection to the previous wordRichEditSelection.goToPrevWordThe shortcut replicates the command’s overload with the parameter set to true
CTRL+SHIFT+RIGHTExtends the selection to the next wordRichEditSelection.goToNextWordThe shortcut replicates the command’s overload with the parameter set to true
CTRL+SHIFT+UPExtends the selection to the beginning of the previous paragraphRichEditSelection.goToParagraphStartThe shortcut replicates the command’s overload with the parameter set to true
CTRL+SHIFT+DOWNExtends the selection to the beginning of the next paragraphRichEditSelection.goToParagraphEndThe shortcut replicates the command’s overload with the parameter set to true
CTRL+SHIFT+PAGE UPExtends the selection up to the previous pageRichEditSelection.goToStartPrevPageCommandThe shortcut replicates the command’s overload with the parameter set to true
CTRL+SHIFT+PAGE DOWNExtends the selection up to the next pageRichEditSelection.goToStartNextPageCommandThe shortcut replicates the command’s overload with the parameter set to true
CTRL+SHIFT+HOMEExtends the selection to the start of the documentRichEditSelection.goToDocumentStartThe shortcut replicates the command’s overload with the parameter set to true
CTRL+SHIFT+ENDExtends the selection to the end of the documentRichEditSelection.goToDocumentEndThe shortcut replicates the command’s overload with the parameter set to true

Font Settings

ShortcutDescriptionClient-side commandNote
CTRL+IItalicizes the selected charactersRichEditCommands.changeFontItalicThe shortcut replicates the command’s overload without parameters
CTRL+BMakes the selected characters boldRichEditCommands.changeFontBoldThe shortcut replicates the command’s overload without parameters
CTRL+UUnderlines the selected charactersRichEditCommands.changeFontUnderlineThe shortcut replicates the command’s overload without parameters
CTRL+=Changes the selected characters’ subscript formattingRichEditCommands.changeFontSubscriptThe shortcut replicates the command’s overload without parameters
CTRL+SHIFT+=Changes the selected characters’ superscript formattingRichEditCommands.changeFontSuperscriptThe shortcut replicates the command’s overload without parameters

Paragraph Settings

ShortcutDescriptionClient-side command
CTRL+MIncrements the selected paragraphs’ indent levelRichEditCommands.increaseIndent
CTRL+SHIFT+MDecrements the selected paragraphs’ indent levelRichEditCommands.decreaseIndent
CTRL+1Formats a current paragraph with single line spacingRichEditCommands.setSingleParagraphSpacing
CTRL+2Formats a current paragraph with double line spacingRichEditCommands.setDoubleParagraphSpacing
CTRL+5Formats a current paragraph with one and a half line spacingRichEditCommands.setSesquialteralParagraphSpacing
CTRL+LToggles left paragraph alignment on and offRichEditCommands.toggleParagraphAlignmentLeft
CTRL+EToggles centered paragraph alignment on and offRichEditCommands.toggleParagraphAlignmentCenter
CTRL+RToggles right paragraph alignment on and offRichEditCommands.toggleParagraphAlignmentRight
CTRL+JToggles justified paragraph alignment on and offRichEditCommands.toggleParagraphAlignmentJustify

Text formatting

ShortcutDescriptionClient-side command
CTRL+SPACEResets the selected text’s formattingRichEditCommands.clearFormatting
SHIFT+F3Switches the selected text’s caseRichEditCommands.switchTextCase

Dialogs

ShortcutDescriptionClient-side command
CTRL+NCreates a new empty documentRichEditCommands.fileNew
CTRL+O, CTRL+F12 (Windows only)Invokes the File Open dialogRichEditCommands.fileOpenDialog
CTRL+P, CTRL+SHIFT+F12 (Windows only)Invokes the browser-specific Print dialogRichEditCommands.filePrint
CTRL+S, META+SHIFT+S (Mac OS only)Invokes the Save As dialogRichEditCommands.fileSave
CTRL+DInvokes the Font dialogRichEditCommands.changeFontFormatting
CTRL+KInvokes the Hyperlink dialogRichEditCommands.openInsertHyperlinkDialog
F7Invokes the Spelling dialogRichEditCommands.openSpellingDialog
CTRL+HInvokes the Find and Replace dialogRichEditCommands.openFindAndReplaceDialog
CTRL+FInvokes the Search Panel windowRichEditCommands.openFindPanel

Control

ShortcutDescriptionClient-side commandNote
F10Shows ribbon key tips
F11, CTRL+F10 (Windows only)Toggles the fullscreen modeRichEditCommands.setFullscreenThe shortcut replicates the command’s overload without parameters
CTRL+SHIFT+8Toggles the hidden symbols’ visibilityRichEditCommands.showHiddenSymbols

Special Characters

ShortcutDescriptionClient-side commandNote
ENTERInserts a paragraph break at the current positionRichEditCommands.insertParagraph
TABInserts a tab character at the current positionRichEditCommands.insertTab
SPACE, SHIFT+SPACE (Mac OS only)Inserts a space at the current positionRichEditCommands.insertTextThe shortcut replicates the command executed as follows: richEdit.commands.insertText.execute(" ")
CTRL+SHIFT+SPACE (Windows only), ALT+SHIFT+SPACE (Mac OS only)Inserts a non-breaking space at the current positionRichEditCommands.insertNonBreakingSpace
SHIFT+ENTERInsert a line break at the current positionRichEditCommands.insertLineBreak
CTRL+ENTERInserts a page break at the current positionRichEditCommands.insertPageBreak
CTRL+SHIFT+ENTERInserts a column break at the current positionRichEditCommands.insertColumnBreak
SHIFT+TABInserts a shift-tab at the current position

Undo

ShortcutDescriptionClient-side command
CTRL+Z, F1 (Mac OS only)Undoes the previous actionRichEditCommands.undo
CTRL+YRedoes the previously undone action.RichEditCommands.redo

Delete

ShortcutDescriptionClient-side command
DELETEDeletes the selected textRichEditCommands.delete
BACKSPACEMoves the cursor backwards and erases the character in that spaceRichEditCommands.backspace
CTRL+DELETERemoves the next wordRichEditCommands.removeNextWord
CTRL+BACKSPACERemoves the previous wordRichEditCommands.removePrevWord