Fixed bug 2526, but regressed delivering dead key presses

This commit is contained in:
Sam Lantinga 2014-06-04 10:56:43 -07:00
parent 4750fe7390
commit 529bcf6293

View File

@ -305,12 +305,15 @@ X11_DispatchEvent(_THIS)
#endif #endif
if (orig_keycode) { if (orig_keycode) {
/* Make sure dead key press/release events are sent */ /* Make sure dead key press/release events are sent */
/* Actually, don't do this because it causes double-delivery
of some keys on Ubuntu 14.04 (bug 2526)
SDL_Scancode scancode = videodata->key_layout[orig_keycode]; SDL_Scancode scancode = videodata->key_layout[orig_keycode];
if (orig_event_type == KeyPress) { if (orig_event_type == KeyPress) {
SDL_SendKeyboardKey(SDL_PRESSED, scancode); SDL_SendKeyboardKey(SDL_PRESSED, scancode);
} else { } else {
SDL_SendKeyboardKey(SDL_RELEASED, scancode); SDL_SendKeyboardKey(SDL_RELEASED, scancode);
} }
*/
} }
return; return;
} }