Maps keyboard input to syntax-editor commands and exposes virtual handlers for customizing individual keys.
Definition
Namespace:Telerik.WinForms.SyntaxEditor
Assembly:Telerik.WinControls.SyntaxEditor.dll
Syntax:
public class SyntaxEditorInputBehavior
Inheritance: objectSyntaxEditorInputBehavior
Constructors
Associates this input behavior with the editor whose document and commands it will operate on.
public SyntaxEditorInputBehavior(RadSyntaxEditorElement editor)
The editor that receives keyboard input.
Properties
Gets the editor whose document and commands are targeted by this behavior.
public RadSyntaxEditorElement SyntaxEditor { get; }
Methods
Executes the command that closes the editor's find panel.
protected virtual void PerformCloseFileDialog(KeyEventArgs e)
The key input that requested closing the panel.
Invokes the editor's code-completion command and suppresses the originating key press.
protected virtual void PerformCodeCompletion(KeyEventArgs e)
The key input whose subsequent key press should be suppressed.
Copies the current selection and suppresses the originating key press.
protected virtual void PerformCopyOperation(KeyEventArgs e)
The key input whose subsequent key press should be suppressed.
Opens the editor's find panel and suppresses the originating key press.
protected virtual void PerformOpenFileDialog(KeyEventArgs e)
The key input whose subsequent key press should be suppressed.
Selects the entire document and suppresses the originating key press.
protected virtual void PerformSelectAllOperation(KeyEventArgs e)
The key input whose subsequent key press should be suppressed.
Deletes the character or word before the caret; no deletion command is executed while the editor is read-only.
protected virtual void ProcessBackKey(KeyEventArgs e)
The key input; Control selects deletion of the preceding word instead of one character.
Deletes the character or word after the caret, or cuts the selection with Shift+Delete; read-only editors are unchanged.
protected virtual void ProcessDeleteKey(KeyEventArgs e)
The key input whose Control and Shift modifiers select the operation.
Moves the caret down one line when Control is not pressed.
protected virtual void ProcessDownKey(KeyEventArgs e)
The key input whose Control modifier determines whether movement occurs.
Moves the caret to the end of the line, or to the end of the document when Control is pressed.
protected virtual void ProcessEndKey(KeyEventArgs e)
The key input; its Control modifier selects the destination.
Cancels an active mouse selection, if present, and closes the find panel.
protected virtual void ProcessEscKey(KeyEventArgs e)
The Escape-key input that triggered the cancellation.
Moves to the next search match, or to the previous match when Shift is pressed, if the find box contains text.
protected virtual void ProcessF3Key(KeyEventArgs e)
The F3 key input; its Shift modifier selects the search direction.
Moves the caret to the start of the line, or to the start of the document when Control is pressed.
protected virtual void ProcessHomeKey(KeyEventArgs e)
The key input; its Control modifier selects the destination.
Toggles insert mode, copies with Ctrl+Insert, or pastes with Shift+Insert; read-only editors are unchanged.
protected virtual void ProcessInsertKey(KeyEventArgs e)
The Insert-key input whose modifiers select the operation.
Raises the preview key-down event, then dispatches an unhandled key and its modifiers to the corresponding editor command.
public virtual void ProcessKeyDown(KeyEventArgs e)
The key and modifier state used to choose the input operation.
Inserts eligible character input into the document after sanitizing line breaks and applying the editor's return setting.
public virtual void ProcessKeyPress(KeyPressEventArgs e)
The character input to process.
Raises the preview key-up event unless the original key event has already been handled.
public virtual void ProcessKeyUp(KeyEventArgs e)
The key-up input to process.
Moves the caret left by one character, or by one word when Control is pressed.
protected virtual void ProcessLeftKey(KeyEventArgs e)
The key input; its Control modifier selects character or word movement.
Moves the caret down by one page.
protected virtual void ProcessPageDownKey(KeyEventArgs e)
The key input that requested the movement.
Moves the caret up by one page.
protected virtual void ProcessPageUpKey(KeyEventArgs e)
The key input that requested the movement.
Moves the caret right by one character, or by one word when Control is pressed.
protected virtual void ProcessRightKey(KeyEventArgs e)
The key input; its Control modifier selects character or word movement.
Indents the selection, or unindents it when Shift is pressed; read-only editors are unchanged.
protected virtual void ProcessTabKey(KeyEventArgs e)
The key input whose Shift modifier selects indentation or unindentation.
Moves the caret up one line when Control is not pressed.
protected virtual void ProcessUpKey(KeyEventArgs e)
The key input whose Control modifier determines whether movement occurs.
Pastes clipboard text at the caret unless the document is read-only.
Cuts the current selection unless the document is read-only.
Redoes the latest undone editor operation unless the document is read-only.
Undoes the latest editor operation unless the document is read-only.