1
1
forked from 0ad/0ad

Disable SDL text input events before actually focusing a text input element. Patch by echotangoecho, refs #3870.

Thus don't add a "t" to the chat input after opening it with the hotkey
on unix.
The bug still occurs on Windows due to an SDL bug reported upstream by
echotangoecho.

This was SVN commit r18990.
This commit is contained in:
elexis 2016-11-23 13:29:47 +00:00
parent 6149dd3841
commit c49c665edb

View File

@ -684,6 +684,9 @@ static void InitSDL()
}
atexit(SDL_Quit);
// Text input is active by default, disable it until it is actually needed.
SDL_StopTextInput();
#if OS_MACOSX
// Some Mac mice only have one button, so they can't right-click
// but SDL2 can emulate that with Ctrl+Click