mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-01 04:01:56 +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)
|
switch(scan)
|
||||||
{
|
{
|
||||||
case SDL_SCANCODE_GRAVE:
|
case SDL_SCANCODE_GRAVE:
|
||||||
|
SDL_StopTextInput();
|
||||||
|
SDL_StartTextInput();
|
||||||
c->ShowConsole();
|
c->ShowConsole();
|
||||||
break;
|
break;
|
||||||
case SDL_SCANCODE_SPACE: //Space
|
case SDL_SCANCODE_SPACE: //Space
|
||||||
|
Reference in New Issue
Block a user