if the key name is not a valid key
keyvalFromName
fn
uint 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
keyvalName | a key name |
Returns
the corresponding key value, or [gdk.types.KEY_VoidSymbol]