From 89bd2c6b15a23a2768029f293b215287f9f3312e Mon Sep 17 00:00:00 2001 From: BloodWod Date: Mon, 26 Jul 2021 14:10:39 +0500 Subject: [PATCH] disabling quick editing in the console --- src/engine/client/client.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index 0ae099d32..ff5f9ec82 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -4380,7 +4380,14 @@ int main(int argc, const char **argv) // ignore_convention #if defined(CONF_FAMILY_WINDOWS) if(g_Config.m_ClShowConsole) + { AllocConsole(); + HANDLE hInput; + DWORD prev_mode; + hInput = GetStdHandle(STD_INPUT_HANDLE); + GetConsoleMode(hInput, &prev_mode); + SetConsoleMode(hInput, prev_mode & ENABLE_EXTENDED_FLAGS); + } #endif // execute autoexec file