Class KeyPressedEventArgs
- Namespace
- SharpConsoleUI
- Assembly
- SharpConsoleUI.dll
Provides data for the key pressed event within a window.
public class KeyPressedEventArgs : EventArgs
- Inheritance
-
KeyPressedEventArgs
- Inherited Members
Constructors
KeyPressedEventArgs(ConsoleKeyInfo, bool)
Initializes a new instance of the KeyPressedEventArgs class.
public KeyPressedEventArgs(ConsoleKeyInfo keyInfo, bool alreadyHandled)
Parameters
keyInfoConsoleKeyInfoThe key information for the pressed key.
alreadyHandledboolIndicates whether the key was already handled by a control.
Properties
AlreadyHandled
Gets a value indicating whether the key press was already handled by a focused control.
public bool AlreadyHandled { get; }
Property Value
Handled
Gets or sets a value indicating whether this key press event has been handled.
public bool Handled { get; set; }
Property Value
KeyInfo
Gets the key information for the pressed key.
public ConsoleKeyInfo KeyInfo { get; }