From c4a17c88959c7f0e26c5737c0dfbbb94b47eaa22 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 19 Apr 2013 19:29:13 -0400 Subject: [PATCH] Keep XF86 keysym names working These names are unfortunately stored in gsettings around the world, so we can't really stop supporting them. --- gdk/gdkkeynames.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gdk/gdkkeynames.c b/gdk/gdkkeynames.c index 3767e29156..f8dfc1e5c0 100644 --- a/gdk/gdkkeynames.c +++ b/gdk/gdkkeynames.c @@ -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);