Class KeyPressEventArgs
Event arguments to indicate that a key is being pressed on a control that allows keyboard key cancelling.
Inherited Members
Namespace: SadConsole.UI
Assembly: SadConsole.dll
Syntax
public class KeyPressEventArgs : EventArgs
Constructors
KeyPressEventArgs(AsciiKey)
Creates a new event args object.
Declaration
public KeyPressEventArgs(AsciiKey key)
Parameters
Type | Name | Description |
---|---|---|
AsciiKey | key | The key being pressed. |
Fields
Key
The key being pressed by the textbox.
Declaration
public readonly AsciiKey Key
Field Value
Type | Description |
---|---|
AsciiKey |
Properties
IsCancelled
When set to true, causes the textbox to cancel the key press.
Declaration
public bool IsCancelled { get; set; }
Property Value
Type | Description |
---|---|
bool |