[UI] Fixed input focus interfering with gamepad navigation
This commit is contained in:
@@ -33,9 +33,8 @@ void CreateProfileUI::OnDraw(ImGuiIO& io) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ImGui::IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows) &&
|
if (ImGui::IsWindowAppearing()) {
|
||||||
!ImGui::IsAnyItemActive() && !ImGui::IsMouseClicked(0)) {
|
ImGui::SetKeyboardFocusHere();
|
||||||
ImGui::SetKeyboardFocusHere(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ImGui::TextUnformatted("Gamertag:");
|
ImGui::TextUnformatted("Gamertag:");
|
||||||
|
|||||||
Reference in New Issue
Block a user