Merge branch 'pr/231'

This commit is contained in:
Callow 2022-07-13 10:56:43 +03:00
commit 029f6bac80

View File

@ -190,6 +190,13 @@ namespace cheat::feature
if (m_ScenesData.count(sceneID) == 0) if (m_ScenesData.count(sceneID) == 0)
ImGui::Text("Sorry. Current scene is not supported."); 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(); ImGui::InputText("Search", &m_SearchText); ImGui::SameLine();
HelpMarker( HelpMarker(
"This page following with filters for items.\n" "This page following with filters for items.\n"