Method

GdkKeymapget_modifier_mask

since: 3.4

Declaration [src]

GdkModifierType
gdk_keymap_get_modifier_mask (
  GdkKeymap* keymap,
  GdkModifierIntent intent
)

Description [src]

Returns the modifier mask the keymap’s windowing system backend uses for a particular purpose.

Note that this function always returns real hardware modifiers, not virtual ones (e.g. it will return #GDK_MOD1_MASK rather than

GDK_META_MASK if the backend maps MOD1 to META), so there are use

cases where the return value of this function has to be transformed by gdk_keymap_add_virtual_modifiers() in order to contain the expected result.

Available since: 3.4

Parameters

intent

Type: GdkModifierIntent

The use case for the modifier mask.

Return value

Type: GdkModifierType

The modifier mask used for intent.