From 3fb134f8143d442d9db1d3596ab97115b7acbc1d Mon Sep 17 00:00:00 2001 From: jacob1 Date: Wed, 20 Feb 2019 22:12:22 -0500 Subject: [PATCH] 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? --- src/gui/game/GameView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/game/GameView.cpp b/src/gui/game/GameView.cpp index aedb7d2b5..dde7f7223 100644 --- a/src/gui/game/GameView.cpp +++ b/src/gui/game/GameView.cpp @@ -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