cohtml.Net.KeyEventData

A keyboard event.

Inherits from SystemIDisposable

Public Types

Name
enum classEventType { Unknown, KeyDown, KeyUp, Char}
enum classEventLocation { Standard = 0, Left = 1, Right = 2, Numpad = 3}

Public Functions

Name
virtual voidDispose()
KeyEventData()

Public Properties

Name
intKeyCode
The key code.
KeyEventData.EventTypeType
The type of the event.
EventModifiersStateModifiers
The current key modifiers.
KeyEventData.EventLocationLocation
Represents the location of the key on the keyboard or other input device.
boolIsAutoRepeat
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.
boolIsNumPad
Is it a key from the num-pad.
boolIsSystemKey
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

Name
boolswigCMemOwn

Public Types Documentation

enum EventType

EnumeratorValueDescription
Unknown
KeyDown
KeyUp
Char

enum EventLocation

EnumeratorValueDescription
Standard0
Left1
Right2
Numpad3

Public Functions Documentation

function Dispose

virtual void Dispose()

function KeyEventData

KeyEventData()

Public Property Documentation

property KeyCode

int KeyCode;

The key code.

property Type

KeyEventData.EventType Type;

The type of the event.

property Modifiers

EventModifiersState Modifiers;

The current key modifiers.

property Location

KeyEventData.EventLocation Location;

Represents the location of the key on the keyboard or other input device.

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

bool IsNumPad;

Is it a key from the num-pad.

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

variable swigCMemOwn

bool swigCMemOwn;