Represents a RadAutoCompleteBoxElement keyboard and mouse input handler
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class AutoCompleteBoxInputHandler : TextBoxInputHandler, ITextBoxInputHandler, IDisposable
Inheritance: objectTextBoxInputHandlerAutoCompleteBoxInputHandler
Implements:
Inherited Members
Constructors
Initializes a new instance of the AutoCompleteBoxInputHandler class.
public AutoCompleteBoxInputHandler(RadAutoCompleteBoxElement textBoxElement)
The text box element.
Methods
Gets the text block at point.
protected ITextBlock GetTextBlockAtPoint(Point location)
The location.
Returns:Defers Enter handling when auto-completion is enabled and AcceptsReturn is set; otherwise uses the base selection behavior.
protected override bool ProcessEnterKey(KeyEventArgs e)
The Enter key event.
Returns:false when auto-completion is enabled and AcceptsReturn is set; otherwise, the base handler's result.
Overrides:
Leaves Up and Down keys to caret navigation when the text box is multiline and its suggestion popup is closed.
protected override bool ProcessListNavigation(KeyEventArgs e)
The key event used to navigate suggestions.
Returns:false for multiline caret navigation with a closed popup; otherwise, the base list-navigation result.
Overrides:
Closes the suggestion popup on a handled left click and selects a whole token when the click is outside its remove button.
public override bool ProcessMouseDown(MouseEventArgs e)
The mouse event received by the text box.
Returns:true when the base input handler processes the mouse down; otherwise, false.
Overrides:
Closes the suggestion popup before processing Left or Right navigation when auto-completion is enabled.
protected override bool ProcessNavigationKey(KeyEventArgs e)
The navigation key event.
Returns:The result of the base navigation handler.
Overrides:
Uses the default cursor over token blocks and the base text cursor behavior elsewhere.