Class KeyEvent
Keyboard event
Constructors
| Name | Description |
this
(action, keyCode, flags, text)
|
create key event
|
Fields
| Name | Type | Description |
_action
|
KeyAction | action
|
_flags
|
uint | key flags bit set, usually combined from KeyFlag enum
|
_keyCode
|
uint | key code, usually from KeyCode enum
|
_text
|
dstring | entered text
|
Properties
| Name | Type | Description |
action[get]
|
KeyAction | key action (KeyDown, KeyUp, Text, Repeat)
|
flags[get]
|
uint | flags (shift, ctrl, alt...) - KeyFlag enum
|
hasModifiers[get]
|
bool | returns true if any modifier flag is set
|
keyCode[get]
|
uint | key code (usually from KeyCode enum)
|
modifiers[get]
|
uint | returns modifier flags filtered for KeyFlag.Control | KeyFlag.Alt | KeyFlag.Menu | KeyFlag.Shift only
|
noModifiers[get]
|
bool | returns true if no modifier flags are set
|
text[get]
|
dstring | entered text, for Text action
|
toString[get]
|
string | |