Keep XF86 keysym names working

These names are unfortunately stored in gsettings around
the world, so we can't really stop supporting them.
This commit is contained in:
Matthias Clasen 2013-04-19 19:29:13 -04:00
parent 606a626981
commit c4a17c8895

View File

@ -90,7 +90,10 @@ _gdk_keyval_from_name (const gchar *keyval_name)
gdk_key *found;
g_return_val_if_fail (keyval_name != NULL, 0);
if (strncmp (keyval_name,"XF86", 4) == 0)
keyval_name += 4;
found = bsearch (keyval_name, gdk_keys_by_name,
GDK_NUM_KEYS, sizeof (gdk_key),
gdk_keys_name_compare);