浏览代码

Do not trigger console via alt->tab

Dydzio 1 年之前
父节点
当前提交
30a9a32549
共有 1 个文件被更改,包括 3 次插入0 次删除
  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