Fixed bug 2526, but regressed delivering dead key presses
authorSam Lantinga <slouken@libsdl.org>
Wed, 04 Jun 2014 10:56:43 -0700
changeset 8819728adb496260
parent 8818 3b075068bf2e
child 8820 0e935d5b193a
Fixed bug 2526, but regressed delivering dead key presses
src/video/x11/SDL_x11events.c
     1.1 --- a/src/video/x11/SDL_x11events.c	Wed Jun 04 10:56:37 2014 -0700
     1.2 +++ b/src/video/x11/SDL_x11events.c	Wed Jun 04 10:56:43 2014 -0700
     1.3 @@ -305,12 +305,15 @@
     1.4  #endif
     1.5          if (orig_keycode) {
     1.6              /* Make sure dead key press/release events are sent */
     1.7 +            /* Actually, don't do this because it causes double-delivery
     1.8 +               of some keys on Ubuntu 14.04 (bug 2526)
     1.9              SDL_Scancode scancode = videodata->key_layout[orig_keycode];
    1.10              if (orig_event_type == KeyPress) {
    1.11                  SDL_SendKeyboardKey(SDL_PRESSED, scancode);
    1.12              } else {
    1.13                  SDL_SendKeyboardKey(SDL_RELEASED, scancode);
    1.14              }
    1.15 +            */
    1.16          }
    1.17          return;
    1.18      }