src/video/x11/SDL_x11events.c
changeset 1179 abb4267e7028
parent 1178 9867f3d86e44
child 1196 b81f54c3963f
equal deleted inserted replaced
1178:9867f3d86e44 1179:abb4267e7028
   831 		}
   831 		}
   832 #endif
   832 #endif
   833 		/* Look up the translated value for the key event */
   833 		/* Look up the translated value for the key event */
   834 
   834 
   835 		/* if there is no connection with the IM server, use the regular method */
   835 		/* if there is no connection with the IM server, use the regular method */
   836 		if (ic == NULL) {
   836 		if (ic == NULL || xkey->type != KeyPress) {
   837 			unsigned char keybuf[32];
   837 			unsigned char keybuf[32];
   838 
   838 
   839 			if ( pXLookupString(xkey, (char *)keybuf, sizeof(keybuf),
   839 			if ( pXLookupString(xkey, (char *)keybuf, sizeof(keybuf),
   840 								NULL, &state) ) {
   840 								NULL, &state) ) {
   841 				/*
   841 				/*