GdkX11.X11Keymap.prototype.get_group_for_state
function get_group_for_state(state: Number(guint)): Number(gint) { // Gjs wrapper for gdk_x11_keymap_get_group_for_state() }
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.
Since 3.6
- state
raw state returned from X
- Returns
the index of the active keyboard group for the event