Package: gdk

Function gdk-keymap-entries-for-keyval

Lambda List

gdk-keymap-entries-for-keyval (keymap keyval)

Arguments

keymap -- a gdk-keymap object
keyval -- a keyval, such as GDK_a, GDK_Up, GDK_Return, etc.

Return Value

A list of keycode, group, and level values.

Details

Obtains a list of keycode/group/level combinations that will generate keyval. Groups and levels are two kinds of keyboard mode. In general, the level determines whether the top or bottom symbol on a key is used, and the group determines whether the left or right symbol is used. On US keyboards, the shift key changes the keyboard level, and there are no groups. A group switch key might convert a keyboard between Hebrew to English modes, for example. A gdk-event-key event contains a group field that indicates the active keyboard group. The level is computed from the modifier mask.

Example

(gdk-keymap-entries-for-keyval keymap (gdk-keyval-from-name "plus"))
=> ((35 0 0))
(gdk-keymap-entries-for-keyval keymap (gdk-keyval-from-name "asciitilde"))
=> ((35 0 2))    
 

See also

2021-12-13