Explorar o código

Do not trigger console via alt->tab

Dydzio hai 1 ano
pai
achega
30a9a32549
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      client/adventureMap/CInGameConsole.cpp

+ 3 - 0
client/adventureMap/CInGameConsole.cpp

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