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"