Interface IInteractiveControl
- Namespace
- SharpConsoleUI.Controls
- Assembly
- SharpConsoleUI.dll
Represents a control that can receive keyboard input and be focused.
public interface IInteractiveControl
Properties
HasFocus
Gets or sets whether this control currently has keyboard focus.
bool HasFocus { get; set; }
Property Value
IsEnabled
Gets or sets whether this control is enabled and can receive input.
bool IsEnabled { get; set; }
Property Value
Methods
ProcessKey(ConsoleKeyInfo)
Processes a keyboard input event.
bool ProcessKey(ConsoleKeyInfo key)
Parameters
keyConsoleKeyInfoThe key information for the pressed key.
Returns
- bool
True if the key was handled by this control; otherwise, false.