lookup_key


Description:

public uint lookup_key (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 translate_keyboard_state instead of this function, since the effective group/level may not be the same as the current keyboard state.

Parameters:

this

a Keymap

key

a KeymapKey with keycode, group, and level initialized

Returns:

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