Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Don't use X11 unicode keys on anything but keypress events.
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+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), |
|
|