cohtml.Net.KeyEventData
A keyboard event.
Inherits from SystemIDisposable
Public Types
Section titled “Public Types”| Name | |
|---|---|
| enum class | EventType { Unknown, KeyDown, KeyUp, Char} |
| enum class | EventLocation { Standard = 0, Left = 1, Right = 2, Numpad = 3} |
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| virtual void | Dispose() |
| KeyEventData() |
Public Properties
Section titled “Public Properties”| Name | |
|---|---|
| int | KeyCode The key code. |
| KeyEventData.EventType | Type The type of the event. |
| EventModifiersState | Modifiers The current key modifiers. |
| KeyEventData.EventLocation | Location Represents the location of the key on the keyboard or other input device. |
| bool | IsAutoRepeat Is it an auto-repeat event (the user is holding the key down). This value isn’t crucial and you can set it to false if you don’t have the information, however you might experience incorrect repeat behavior in such case. |
| bool | IsNumPad Is it a key from the num-pad. |
| bool | IsSystemKey This identifies whether this event was tagged by the system as being a “system key” event (see http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for details). Other platforms don’t have this concept. Generally means the Alt key is held down (but not AltGr, if present). |
Protected Attributes
Section titled “Protected Attributes”| Name | |
|---|---|
| bool | swigCMemOwn |
Public Types Documentation
Section titled “Public Types Documentation”enum EventType
Section titled “enum EventType”| Enumerator | Value | Description |
|---|---|---|
| Unknown | ||
| KeyDown | ||
| KeyUp | ||
| Char |
enum EventLocation
Section titled “enum EventLocation”| Enumerator | Value | Description |
|---|---|---|
| Standard | 0 | |
| Left | 1 | |
| Right | 2 | |
| Numpad | 3 |
Public Functions Documentation
Section titled “Public Functions Documentation”function Dispose
Section titled “function Dispose”virtual void Dispose()function KeyEventData
Section titled “function KeyEventData”KeyEventData()Public Property Documentation
Section titled “Public Property Documentation”property KeyCode
Section titled “property KeyCode”int KeyCode;The key code.
property Type
Section titled “property Type”KeyEventData.EventType Type;The type of the event.
property Modifiers
Section titled “property Modifiers”EventModifiersState Modifiers;The current key modifiers.
property Location
Section titled “property Location”KeyEventData.EventLocation Location;Represents the location of the key on the keyboard or other input device.
property IsAutoRepeat
Section titled “property IsAutoRepeat”bool IsAutoRepeat;Is it an auto-repeat event (the user is holding the key down). This value isn’t crucial and you can set it to false if you don’t have the information, however you might experience incorrect repeat behavior in such case.
property IsNumPad
Section titled “property IsNumPad”bool IsNumPad;Is it a key from the num-pad.
property IsSystemKey
Section titled “property IsSystemKey”bool IsSystemKey;This identifies whether this event was tagged by the system as being a “system key” event (see http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for details). Other platforms don’t have this concept. Generally means the Alt key is held down (but not AltGr, if present).
Protected Attributes Documentation
Section titled “Protected Attributes Documentation”variable swigCMemOwn
Section titled “variable swigCMemOwn”bool swigCMemOwn;© 2026 Coherent Labs. All rights reserved.