ux: Auto focus goto and find text box. Execute function on enter

This commit is contained in:
WerWolv
2022-01-29 21:48:59 +01:00
parent def20f7e69
commit 3f5b258629
3 changed files with 27 additions and 11 deletions

View File

@@ -585,7 +585,7 @@ namespace hex {
if (hasWindow && !(window->Flags & ImGuiWindowFlags_Popup)) {
ImGui::Begin(View::toWindowName(name).c_str());
focused = ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows);
focused = ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows | ImGuiFocusedFlags_NoPopupHierarchy);
ImGui::End();
}