keyvalFromName

fnuint keyvalFromName(string keyvalName)

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_”.

Parameters

keyvalNamea key name

Returns

the corresponding key value, or [gdk.types.KEY_VoidSymbol]

if the key name is not a valid key