Skip to content
Permalink
Browse files

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

  • Loading branch information
icculus committed Nov 21, 2005
1 parent 51686a3 commit d9953a4b0269eca7903c087f3f82b33f86b7f21a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/x11/SDL_x11events.c
@@ -833,7 +833,7 @@ SDL_keysym *X11_TranslateKey(Display *display, XIC ic, XKeyEvent *xkey, KeyCode
/* Look up the translated value for the key event */

/* 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];

if ( pXLookupString(xkey, (char *)keybuf, sizeof(keybuf),

0 comments on commit d9953a4

Please sign in to comment.