Class KeyEvent

Keyboard event

class KeyEvent

Constructors

NameDescription
this (action, key, mods, text)

Properties

TypeNameDescription
action[get] Key action (keyDown, keyUp, text, repeat)
allModifiers[get] Key modifier bit flags (shift, ctrl, alt...)
key[get] Key code from Key enum
modifiers[get] Get modifiers, not counting the difference between left or right
bool
noModifiers[get] True if has no modifiers applied
dstring
text[get] Entered text, for text action

Methods

NameDescription
alteredBy (mod) Check whether all of mod modifiers are applied
toString ()