Commit 1e285f76 authored by Ryan C. Gordon's avatar Ryan C. Gordon

Don't use X11 unicode keys on anything but keypress events.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401182
parent d8cb11bb
...@@ -833,7 +833,7 @@ SDL_keysym *X11_TranslateKey(Display *display, XIC ic, XKeyEvent *xkey, KeyCode ...@@ -833,7 +833,7 @@ SDL_keysym *X11_TranslateKey(Display *display, XIC ic, XKeyEvent *xkey, KeyCode
/* Look up the translated value for the key event */ /* Look up the translated value for the key event */
/* if there is no connection with the IM server, use the regular method */ /* if there is no connection with the IM server, use the regular method */
if (ic == NULL) { if (ic == NULL || xkey->type != KeyPress) {
unsigned char keybuf[32]; unsigned char keybuf[32];
if ( pXLookupString(xkey, (char *)keybuf, sizeof(keybuf), if ( pXLookupString(xkey, (char *)keybuf, sizeof(keybuf),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment