From d89c2003460a9f6f28444697eef9ae40b6732631 Mon Sep 17 00:00:00 2001 From: Fanixtar <96950043+Fanixtar@users.noreply.github.com> Date: Sat, 9 Jul 2022 21:10:24 +0700 Subject: [PATCH] Fix Interactive Map input bug --- cheat-library/src/user/cheat/imap/InteractiveMap.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cheat-library/src/user/cheat/imap/InteractiveMap.cpp b/cheat-library/src/user/cheat/imap/InteractiveMap.cpp index 2ffd2d3..af2d044 100644 --- a/cheat-library/src/user/cheat/imap/InteractiveMap.cpp +++ b/cheat-library/src/user/cheat/imap/InteractiveMap.cpp @@ -190,6 +190,13 @@ namespace cheat::feature if (m_ScenesData.count(sceneID) == 0) ImGui::Text("Sorry. Current scene is not supported."); + // If any InputText is focused, the game will not respond any keyboard input. + auto ctx = ImGui::GetCurrentContext(); + if (ctx->IO.WantCaptureKeyboard) + renderer::SetInputLock(this, true); + else + renderer::SetInputLock(this, false); + ImGui::InputText("Search", &m_SearchText); ImGui::SameLine(); HelpMarker( "This page following with filters for items.\n"