SuperclassesDocumented Subclasses
None
Direct SlotsDetails The gtk:event-controller-key object is an event controller meant
for situations where you need access to key events. Signal Details
The "key-pressed" signal
lambda (controller keyval keycode state) :run-last - controller
- The gtk:event-controller-key object that received the signal.
- keyval
- The unsigned integer for the pressed key.
- keycode
- The unsigned integer for the raw code of the pressed key.
- state
- The gdk:modifier-type bitmask representing the state of modifier keys and pointer buttons.
- Returns
- True if the key press was handled, false otherwise.
The signal is emitted whenever a key is pressed.
The "key-releaded" signal
lambda (controller keyval keycode state) :run-last - controller
- The gtk:event-controller-key object that received the signal.
- keyval
- The unsigned integer for the released key.
- keycode
- The unsigned integer for the raw code of the released key.
- state
- The gdk:modifier-type bitmask representing the state of modifier keys and pointer buttons.
The signal is emitted whenever a key is released.
The "modifiers" signal
lambda (controller state) :run-last - controller
- The gtk:event-controller-key object on which received the signal.
- state
- The gdk:modifier-type bitmask, representing the state of modifier keys and pointer buttons.
- Returns
- The boolean whether to ignore modifiers.
This signal is emitted whenever the state of modifier keys and pointer
buttons change. |
| Returned byInherited Slot Access FunctionsSee also |