Fix issue on qwertz keyboard layouts where the first key input after opening the console would be ignored

This seems like a hack, but I think it's the intended way to do this?
This commit is contained in:
jacob1 2019-02-20 22:12:22 -05:00
parent 646935edb3
commit 3fb134f814

View File

@ -1434,6 +1434,8 @@ void GameView::OnKeyPress(int key, int scan, bool repeat, bool shift, bool ctrl,
switch(scan)
{
case SDL_SCANCODE_GRAVE:
SDL_StopTextInput();
SDL_StartTextInput();
c->ShowConsole();
break;
case SDL_SCANCODE_SPACE: //Space