Sfoglia il codice sorgente

Do not trigger console via alt->tab

Dydzio 1 anno fa
parent
commit
30a9a32549
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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