Compilation Units
Tagged Types
An event related to a key-based device.
type Gdk_Key_Event is new Gdk_Event with null record;
function Get_Consumed_Modifiers
(Self : Gdk.Event.Gdk_Event) return Gdk.Enums.Gdk_Modifier_Type
Extracts the consumed modifiers from a key event.
the consumed modifiers or Event
function Get_Keycode (Self : Gdk.Event.Gdk_Event) return Guint
Extracts the keycode from a key event.
the keycode of Event
function Get_Keyval (Self : Gdk.Event.Gdk_Event) return Guint
Extracts the keyval from a key event.
the keyval of Event
function Get_Layout (Self : Gdk.Event.Gdk_Event) return Guint
Extracts the layout from a key event.
the layout of Event
function Get_Level (Self : Gdk.Event.Gdk_Event) return Guint
Extracts the shift level from a key event.
the shift level of Event
function Get_Match
(Self : Gdk.Event.Gdk_Event;
Keyval : out Guint;
Modifiers : out Gdk.Enums.Gdk_Modifier_Type) return Boolean
Gets a keyval and modifier combination that will match the event. See [methodGdk.KeyEvent.matches].
return location for a keyval
return location for modifiers
True on success
function Get_Type return Glib.GType
function Is_Modifier (Self : Gdk.Event.Gdk_Event) return Boolean
Extracts whether the key event is for a modifier key.
True if the Event is for a modifier key
function Matches
(Self : Gdk.Event.Gdk_Event;
Keyval : Guint;
Modifiers : Gdk.Enums.Gdk_Modifier_Type)
return Gdk.Key_Match.Gdk_Key_Match
Matches a key event against a keyval and modifiers. This is typically used to trigger keyboard shortcuts such as Ctrl-C. Partial matches are possible where the combination matches if the currently active group is ignored. Note that we ignore Caps Lock for matching.
the keyval to match
the modifiers to match
a GdkKeyMatch value describing whether Event matches