Skip to content

Commit

Permalink
Don't use X11 unicode keys on anything but keypress events.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 21, 2005
1 parent 51686a3 commit d9953a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/x11/SDL_x11events.c
Expand Up @@ -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),
Expand Down

0 comments on commit d9953a4

Please sign in to comment.