Event fired when a key is pressed
The event handler receives an argument of type SdgKeyEventArgs containing data related to this event. The following SdgKeyEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Alt | Gets a boolean value representing the current state of the Alt key |
| Control | Gets a boolean value representing the current state of the Control key |
| Handled | Gets a boolean value describing if this event has been handled by another component |
| ID | Gets the ID of the keyboard which raised this event |
| KeyCode | Gets the Keys enumeration of the current key pressed without modifiers such as Alt, Control and Shift |
| KeyData | Gets the Keys enumeration of the current key pressed with modifiers such as Alt, Control and Shift |
| KeyValue | Gets a numeric value representing the acsii character of the key pressed |
| Modifiers | Returns a Keys enumeration of all the modifiers used (such as Alt, Control and Shift) in the key event |
| Shift | Gets a boolean value representing the current state of the Shift key |