mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-14 00:34:18 +00:00
Removed use of obsolete ImGui API.
This commit is contained in:
parent
6190ab0084
commit
ef1a683ebe
1 changed files with 1 additions and 1 deletions
|
|
@ -2574,7 +2574,7 @@ struct ExampleAppConsole
|
|||
}
|
||||
|
||||
// Demonstrate keeping auto focus on the input box
|
||||
if (ImGui::IsItemHovered() || (ImGui::IsRootWindowOrAnyChildFocused() && !ImGui::IsAnyItemActive() && !ImGui::IsMouseClicked(0)))
|
||||
if (ImGui::IsItemHovered() || (ImGui::IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows) && !ImGui::IsAnyItemActive() && !ImGui::IsMouseClicked(0)))
|
||||
ImGui::SetKeyboardFocusHere(-1); // Auto focus previous widget
|
||||
|
||||
ImGui::End();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue