GdkX11.X11Keymap

g GObject.Object GObject.Object Gdk.Keymap Gdk.Keymap GObject.Object->Gdk.Keymap GdkX11.X11Keymap GdkX11.X11Keymap Gdk.Keymap->GdkX11.X11Keymap

Subclasses:

None

Methods

Inherited:

Gdk.Keymap (15), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_group_for_state (state)

key_is_modifier (keycode)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

Gdk.Keymap (3), GObject.Object (1)

Fields

Inherited:

Gdk.Keymap (3), GObject.Object (1)

Class Details

class GdkX11.X11Keymap(**kwargs)
Bases:

Gdk.Keymap

Abstract:

No

Structure:

GdkX11.X11KeymapClass

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:

int

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:

bool

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.