Index: eggaccelerators.c
===================================================================
RCS file: /cvs/gnome/gnome-control-center/gnome-settings-daemon/eggaccelerators.c,v
retrieving revision 1.1
diff -u -p -r1.1 eggaccelerators.c
--- eggaccelerators.c	13 Jan 2004 15:57:35 -0000	1.1
+++ eggaccelerators.c	15 Mar 2004 22:38:59 -0000
@@ -24,6 +24,7 @@
 #include <string.h>
 #include <gdk/gdkx.h>
 #include <gdk/gdkkeysyms.h>
+#include <X11/X.h>
 
 enum
 {
@@ -326,7 +327,13 @@ egg_accelerator_parse_virtual (const gch
 	{
           keyval = gdk_keyval_from_name (accelerator);
 
-          if (keyval == 0)
+          if (keyval != 0)
+	    {
+	      if (keycode) {
+		*keycode = XKeysymToKeycode  (GDK_DISPLAY(), keyval);
+	      }
+	    }
+	  else
 	    {
 	      /* If keyval is 0, than maybe it's a keycode.  Check for 0x## */
 	      if (len >= 4 && is_keycode (accelerator))
