1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-04-23 12:08:45 +02:00

Do not trigger console via alt->tab

This commit is contained in:
Dydzio 2023-12-19 20:02:45 +01:00
parent f40e711721
commit 30a9a32549

View File

@ -151,6 +151,9 @@ void CInGameConsole::keyPressed (EShortcut key)
break; break;
case EShortcut::GAME_ACTIVATE_CONSOLE: case EShortcut::GAME_ACTIVATE_CONSOLE:
if(GH.isKeyboardAltDown())
return; //QoL for alt-tab operating system shortcut
if(!enteredText.empty()) if(!enteredText.empty())
endEnteringText(false); endEnteringText(false);
else else