Don't use X11 unicode keys on anything but keypress events.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 21 Nov 2005 00:31:29 +0000
changeset 1179abb4267e7028
parent 1178 9867f3d86e44
child 1180 bdcb8bb4c831
Don't use X11 unicode keys on anything but keypress events.
src/video/x11/SDL_x11events.c
     1.1 --- a/src/video/x11/SDL_x11events.c	Mon Nov 21 00:16:34 2005 +0000
     1.2 +++ b/src/video/x11/SDL_x11events.c	Mon Nov 21 00:31:29 2005 +0000
     1.3 @@ -833,7 +833,7 @@
     1.4  		/* Look up the translated value for the key event */
     1.5  
     1.6  		/* if there is no connection with the IM server, use the regular method */
     1.7 -		if (ic == NULL) {
     1.8 +		if (ic == NULL || xkey->type != KeyPress) {
     1.9  			unsigned char keybuf[32];
    1.10  
    1.11  			if ( pXLookupString(xkey, (char *)keybuf, sizeof(keybuf),