Fix user_key in xlib.
Fix user_key in xlib.


Index: pyglet/window/xlib/__init__.py
===================================================================
--- pyglet/window/xlib/__init__.py	(revision 792)
+++ pyglet/window/xlib/__init__.py	(working copy)
@@ -983,7 +983,7 @@
                 text = unicode(buffer.value[:count])
         symbol = xlib.XKeycodeToKeysym(self._display, event.xkey.keycode, 0)
         if symbol not in key._key_names.keys():
-            symbol = key.user_key(symbol)
+            symbol = key.user_key(event.xkey.keycode)

         modifiers = self._translate_modifiers(event.xkey.state)

oktayacikalin/pyglet,oktayacikalin/pyglet,theblacklion/pyglet,mammadori/pyglet,oktayacikalin/pyglet,oktayacikalin/pyglet,theblacklion/pyglet,theblacklion/pyglet,theblacklion/pyglet,mammadori/pyglet,theblacklion/pyglet,oktayacikalin/pyglet,mammadori/pyglet,mammadori/pyglet