Keymap.lookupKey

uint lookupKey(gdk.types.KeymapKey key)

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.Keymap.translateKeyboardState] instead of this function, since the effective group/level may not be the same as the current keyboard state.

Parameters

keya #GdkKeymapKey with keycode, group, and level initialized

Returns

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