gdk.key_event

Module for [KeyEvent] class

class KeyEvent

Types 1

An event related to a key-based device.

Methods
gdk.types.ModifierType getConsumedModifiers()Extracts the consumed modifiers from a key event. Returns: the consumed modifiers or event
uint getKeycode()Extracts the keycode from a key event. Returns: the keycode of event
uint getKeyval()Extracts the keyval from a key event. Returns: the keyval of event
uint getLayout()Extracts the layout from a key event. Returns: the layout of event
uint getLevel()Extracts the shift level from a key event. Returns: the shift level of event
bool getMatch(out uint keyval, out gdk.types.ModifierType modifiers)Gets a keyval and modifier combination that will match the event.
bool isModifier()Extracts whether the key event is for a modifier key. Returns: true if the event is for a modifier key
gdk.types.KeyMatch matches(uint keyval, gdk.types.ModifierType modifiers)Matches a key event against a keyval and modifiers.
Constructors
this(void * ptr, Flag!"Take" take)