Method

GdkKeymaplookup_key

Declaration [src]

guint
gdk_keymap_lookup_key (
  GdkKeymap* keymap,
  const GdkKeymapKey* key
)

Description [src]

Looks up the keyval mapped to a keycode/group/level triplet. If no keyval is bound to key, returns 0. For normal user input, you want to use gdk_keymap_translate_keyboard_state() instead of this function, since the effective group/level may not be the same as the current keyboard state.

Parameters

key

Type: GdkKeymapKey

A GdkKeymapKey with keycode, group, and level initialized.

The data is owned by the caller of the function.

Return value

Type: guint

A keyval, or 0 if none was mapped to the given key.