| Top |
| void | focus-in | Run Last |
| void | focus-out | Run Last |
| void | im-update | Run Last |
| gboolean | key-pressed | Run Last |
| void | key-released | Run Last |
| gboolean | modifiers | Run Last |
CtkEventControllerKey is an event controller meant for situations where you need access to key events.
This object was added in 3.24.
CtkEventController *
ctk_event_controller_key_new (CtkWidget *widget);
“focus-in” signalvoid user_function (CtkEventControllerKey *ctkeventcontrollerkey, gpointer user_data)
Flags: Run Last
“focus-out” signalvoid user_function (CtkEventControllerKey *ctkeventcontrollerkey, gpointer user_data)
Flags: Run Last
“im-update” signalvoid user_function (CtkEventControllerKey *ctkeventcontrollerkey, gpointer user_data)
Flags: Run Last
“key-pressed” signalgboolean user_function (CtkEventControllerKey *controller, guint keyval, guint keycode, CdkModifierType 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 CdkModifierType. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.24
“key-released” signalvoid user_function (CtkEventControllerKey *controller, guint keyval, guint keycode, CdkModifierType 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 CdkModifierType. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 3.24
“modifiers” signalgboolean user_function (CtkEventControllerKey *ctkeventcontrollerkey, CdkModifierType arg1, gpointer user_data)
Flags: Run Last