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:
parent
f40e711721
commit
30a9a32549
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user