Top |
GtkEventControllerKey is an event controller meant for situations where you need access to key events.
This object was added in 3.24.
GtkEventController *
gtk_event_controller_key_new (GtkWidget *widget
);
“focus-in”
signalvoid user_function (GtkEventControllerKey *eventcontrollerkey, gpointer user_data)
Flags: Run Last
“focus-out”
signalvoid user_function (GtkEventControllerKey *eventcontrollerkey, gpointer user_data)
Flags: Run Last
“im-update”
signalvoid user_function (GtkEventControllerKey *eventcontrollerkey, gpointer user_data)
Flags: Run Last
“key-pressed”
signalgboolean user_function (GtkEventControllerKey *controller, guint keyval, guint keycode, GdkModifierType state, gpointer user_data)
This signal is emitted whenever a key is pressed.
controller |
the object which received the signal. |
|
keyval |
the pressed key. |
|
keycode |
the raw code of the pressed key. |
|
state |
the bitmask, representing the state of modifier keys and pointer buttons. See GdkModifierType. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.24
“key-released”
signalvoid user_function (GtkEventControllerKey *controller, guint keyval, guint keycode, GdkModifierType state, gpointer user_data)
This signal is emitted whenever a key is released.
controller |
the object which received the signal. |
|
keyval |
the released key. |
|
keycode |
the raw code of the released key. |
|
state |
the bitmask, representing the state of modifier keys and pointer buttons. See GdkModifierType. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.24
“modifiers”
signalgboolean user_function (GtkEventControllerKey *eventcontrollerkey, GdkModifierType arg1, gpointer user_data)
Flags: Run Last