Method

GdkX11X11Keymapkey_is_modifier

since: 3.6

Declaration [src]

gboolean
gdk_x11_keymap_key_is_modifier (
  GdkKeymap* keymap,
  guint keycode
)

Description [src]

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 GdkEventKey directly includes an is_modifier field.

Available since: 3.6

Parameters

keycode

Type: guint

The hardware keycode from a key event.

Return value

Type: gboolean

TRUE if the hardware keycode is a modifier key.