Set focus on input field when find zone window appears.

This commit is contained in:
Bartosz Taudul 2022-03-18 01:25:50 +01:00
parent 3bb2094751
commit 7d14aac137
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -9848,6 +9848,10 @@ void View::DrawFindZone()
ImGui::SetKeyboardFocusHere();
m_shortcut = ShortcutAction::None;
}
else if( ImGui::IsWindowAppearing() )
{
ImGui::SetKeyboardFocusHere();
}
findClicked |= ImGui::InputTextWithHint( "###findzone", "Enter zone name to search for", m_findZone.pattern, 1024, ImGuiInputTextFlags_EnterReturnsTrue );
ImGui::PopItemWidth();