gdk.key_event
Module for [KeyEvent] class
class KeyEvent
Types 1
classKeyEvent : gdk.event.Event
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 eventuint getKeycode()Extracts the keycode from a key event. Returns: the keycode of eventuint getKeyval()Extracts the keyval from a key event. Returns: the keyval of eventuint getLayout()Extracts the layout from a key event. Returns: the layout of eventuint getLevel()Extracts the shift level from a key event. Returns: the shift level of eventbool 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 keygdk.types.KeyMatch matches(uint keyval, gdk.types.ModifierType modifiers)Matches a key event against a keyval and modifiers.