Package: gdk

Function gdk-keymap-lookup-key

Lambda List

gdk-keymap-lookup-key (keymap keycode group level)

Arguments

keymap -- a gdk-keymap object
keycode -- an unsigned integer with the hardware keycode
group -- an integer which indicates movement in a horizontal direction
level -- an integer which indicates which symbol on the key will be used

Return Value

An unsigned integer with the keyval, or 0 if none was mapped to the given key.

Details

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

Example

(gdk-keyval-name (gdk-keymap-lookup-key keymap  35 0 0)) => "plus"
(gdk-keyval-name (gdk-keymap-lookup-key keymap  35 0 1)) => "asterisk"
(gdk-keyval-name (gdk-keymap-lookup-key keymap  35 0 2)) => "asciitilde"
(gdk-keyval-name (gdk-keymap-lookup-key keymap  35 0 3)) => "macron"    
 

See also

2021-12-13