Package: gtk

Class gtk:event-controller-key

Superclasses

gtk:event-controller, gobject:object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

None

Details

The gtk:event-controller-key object is an event controller meant for situations where you need access to key events.

Signal Details

The "focus-in" signal
lambda (controller)    :run-last      
controller
The gtk:event-controller-key object on which the signal is emitted.
The "focus-out" signal
lambda (controller)    :run-last      
controller
The gtk:event-controller-key object on which the signal is emitted.
The "im-update" signal
lambda (controller)    :run-last      
controller
The gtk:event-controller-key object on which the signal is emitted.
The "key-pressed" signal
lambda (controller keyval keycode state)    :run-last      
The signal is emitted whenever a key is pressed.
controller
The gtk:event-controller-key object on which received the signal.
keyval
An unsigned integer with the pressed key.
keycode
An unsigned integer with 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 "key-released" signal
lambda (controller keyval keycode state)    :run-last      
The signal is emitted whenever a key is released.
controller
The gtk:event-controller-key object on which received the signal.
keyval
An unsigned integer with the released key.
keycode
An unsigned integer with the raw code of the released key.
state
The gdk:modifier-type bitmask representing the state of modifier keys and pointer buttons.
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
a not documented boolean
 

Returned by

Inherited Slot Access Functions

See also

#2023-3-1