Class KeyPressEventArgs
- Namespace
- SharpConsoleUI.Core
- Assembly
- SharpConsoleUI.dll
Event arguments for key press events
public class KeyPressEventArgs : EventArgs
- Inheritance
-
KeyPressEventArgs
- Inherited Members
Constructors
KeyPressEventArgs(ConsoleKeyInfo)
Initializes a new instance of the KeyPressEventArgs class.
public KeyPressEventArgs(ConsoleKeyInfo keyInfo)
Parameters
keyInfoConsoleKeyInfoThe key information for the pressed key.
Properties
Handled
Whether the key press was handled
public bool Handled { get; set; }
Property Value
KeyInfo
The key information
public ConsoleKeyInfo KeyInfo { get; }
Property Value
Timestamp
Timestamp when the key was pressed
public DateTime Timestamp { get; }