Package: gdk

Function gdk:keymap-entries-for-keycode

Lambda List

gdk:keymap-entries-for-keycode (keymap keycode)

Arguments

keymap -- a gdk:keymap object
keycode -- an integer for a hardware keycode

Return Value

The list of keyval, keycode, group, and level values.

Details

Returns the keyvals bound to keycode. When a keycode is pressed by the user, the keyval from this list of entries is selected by considering the effective keyboard group and level. See the gdk:keymap-translate-keyboard-state function.

Example

(defvar keymap (gdk:keymap-default)) => KEYMAP
(gdk:keymap-entries-for-keycode keymap 35)
=> ((43 35 0 0) (42 35 0 1) (126 35 0 2) (175 35 0 3))
(mapcar #'gdk:keyval-name (mapcar #'first *))
=> ("plus" "asterisk" "asciitilde" "macron")    
 

See also

2023-3-4