mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 11:19:51 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user