Gtk.EventControllerKey¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
This signal is emitted whenever a key is pressed. |
|
This signal is emitted whenever a key is released. |
|
Fields¶
- Inherited:
Class Details¶
- class Gtk.EventControllerKey(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Gtk.EventControllerKey
is an event controller meant for situations where you need access to key events.This object was added in 3.24.
- classmethod new(widget)[source]¶
- Parameters:
widget (
Gtk.Widget
) –- Return type:
- forward(widget)[source]¶
- Parameters:
widget (
Gtk.Widget
) –- Return type:
- get_im_context()[source]¶
- Returns:
the IM context
- Return type:
Gets the IM context of a key controller.
New in version 3.24.
- set_im_context(im_context)[source]¶
- Parameters:
im_context (
Gtk.IMContext
) –
Signal Details¶
- Gtk.EventControllerKey.signals.focus_in(event_controller_key)¶
- Signal Name:
focus-in
- Flags:
- Parameters:
event_controller_key (
Gtk.EventControllerKey
) – The object which received the signal
- Gtk.EventControllerKey.signals.focus_out(event_controller_key)¶
- Signal Name:
focus-out
- Flags:
- Parameters:
event_controller_key (
Gtk.EventControllerKey
) – The object which received the signal
- Gtk.EventControllerKey.signals.im_update(event_controller_key)¶
- Signal Name:
im-update
- Flags:
- Parameters:
event_controller_key (
Gtk.EventControllerKey
) – The object which received the signal
- Gtk.EventControllerKey.signals.key_pressed(event_controller_key, keyval, keycode, state)¶
- Signal Name:
key-pressed
- Flags:
- Parameters:
event_controller_key (
Gtk.EventControllerKey
) – The object which received the signalkeyval (
int
) – the pressed key.keycode (
int
) – the raw code of the pressed key.state (
Gdk.ModifierType
) – the bitmask, representing the state of modifier keys and pointer buttons. SeeGdk.ModifierType
.
- Returns:
- Return type:
This signal is emitted whenever a key is pressed.
New in version 3.24.
- Gtk.EventControllerKey.signals.key_released(event_controller_key, keyval, keycode, state)¶
- Signal Name:
key-released
- Flags:
- Parameters:
event_controller_key (
Gtk.EventControllerKey
) – The object which received the signalkeyval (
int
) – the released key.keycode (
int
) – the raw code of the released key.state (
Gdk.ModifierType
) – the bitmask, representing the state of modifier keys and pointer buttons. SeeGdk.ModifierType
.
This signal is emitted whenever a key is released.
New in version 3.24.
- Gtk.EventControllerKey.signals.modifiers(event_controller_key, object)¶
- Signal Name:
modifiers
- Flags:
- Parameters:
event_controller_key (
Gtk.EventControllerKey
) – The object which received the signalobject (
Gdk.ModifierType
) –
- Return type: