Don't use X11 unicode keys on anything but keypress events.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401182
This commit is contained in:
parent
d8cb11bbdd
commit
1e285f766b
1 changed files with 1 additions and 1 deletions
|
@ -833,7 +833,7 @@ SDL_keysym *X11_TranslateKey(Display *display, XIC ic, XKeyEvent *xkey, KeyCode
|
||||||
/* Look up the translated value for the key event */
|
/* Look up the translated value for the key event */
|
||||||
|
|
||||||
/* if there is no connection with the IM server, use the regular method */
|
/* 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];
|
unsigned char keybuf[32];
|
||||||
|
|
||||||
if ( pXLookupString(xkey, (char *)keybuf, sizeof(keybuf),
|
if ( pXLookupString(xkey, (char *)keybuf, sizeof(keybuf),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue