Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed losing ALT key modifiers on Unity
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 20, 2013
1 parent f672156 commit f019635
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/video/x11/SDL_x11events.c
Expand Up @@ -356,7 +356,13 @@ X11_DispatchEvent(_THIS)
/* We want to reset the keyboard here, because we may have
missed keyboard messages after our previous FocusOut.
*/
SDL_ResetKeyboard();
/* Actually, if we do this we clear the ALT key on Unity
because it briefly takes focus for their dashboard.
I think it's better to think the ALT key is held down
when it's not, then always lose the ALT modifier on Unity.
*/
/*SDL_ResetKeyboard();*/
}
data->pending_focus = PENDING_FOCUS_IN;
data->pending_focus_time = SDL_GetTicks() + PENDING_FOCUS_IN_TIME;
Expand Down

0 comments on commit f019635

Please sign in to comment.