Fixed losing ALT key modifiers on Unity
This commit is contained in:
parent
f56b6fdc45
commit
2f9ac5db94
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue