Skip to content

Commit

Permalink
Fix issue on qwertz keyboard layouts where the first key input after …
Browse files Browse the repository at this point in the history
…opening the console would be ignored

This seems like a hack, but I think it's the intended way to do this?
  • Loading branch information
jacob1 committed Feb 21, 2019
1 parent 646935e commit 3fb134f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/game/GameView.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 3fb134f

Please sign in to comment.