Piccolo.NET

PInputEventArgs.KeyData Property

Gets the key data for a KeyDown or KeyUp event.

public virtual System.Windows.Forms.Keys KeyData {get;}

Property Value

A Keys value representing the key code for the key that was pressed, combined with modifier flags that indicate which combination of CTRL, SHIFT, and ALT keys were pressed at the same time.

Exceptions

Exception TypeCondition
InvalidOperationException Thrown if the event is not a key event.

See Also

PInputEventArgs Class | UMD.HCIL.Piccolo.Event Namespace