Table of Contents

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

keyInfo ConsoleKeyInfo

The key information for the pressed key.

alreadyHandled bool

Indicates 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

bool

Handled

Gets or sets a value indicating whether this key press event has been handled.

public bool Handled { get; set; }

Property Value

bool

KeyInfo

Gets the key information for the pressed key.

public ConsoleKeyInfo KeyInfo { get; }

Property Value

ConsoleKeyInfo