GdkX11.X11Keymap¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GdkX11.X11Keymap(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- get_group_for_state(state)[source]¶
- Parameters:
state (
int
) – raw state returned from X- Returns:
the index of the active keyboard group for the event
- Return type:
Extracts the group from the state field sent in an X Key event. This is only needed for code processing raw X events, since
Gdk.EventKey
directly includes an is_modifier field.New in version 3.6.
- key_is_modifier(keycode)[source]¶
- Parameters:
keycode (
int
) – the hardware keycode from a key event- Returns:
True
if the hardware keycode is a modifier key- Return type:
Determines whether a particular key code represents a key that is a modifier. That is, it’s a key that normally just affects the keyboard state and the behavior of other keys rather than producing a direct effect itself. This is only needed for code processing raw X events, since
Gdk.EventKey
directly includes an is_modifier field.New in version 3.6.