Package: gdk

Function gdk-keyval-from-name

Lambda List

gdk-keyval-from-name (name)

Arguments

name -- a string with the key name

Return Value

An unsigned integer with the corresponding key value, or the #xffffff value if the key name is not a valid key.

Details

Converts a key name to a key value. The names are the same as those in the gdk/gdkkeysyms.h header file but without the leading "GDK_KEY_".

Examples

(gdk-keyval-from-name "a") => 97
(gdk-keyval-from-name "equal") => 61
(gdk-keyval-from-name "F1") => 65470
(gdk-keyval-from-name "unknown") => 16777215    
 

See also

*2021-12-22