mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Set focus on input field when find zone window appears.
This commit is contained in:
parent
3bb2094751
commit
7d14aac137
@ -9848,6 +9848,10 @@ void View::DrawFindZone()
|
|||||||
ImGui::SetKeyboardFocusHere();
|
ImGui::SetKeyboardFocusHere();
|
||||||
m_shortcut = ShortcutAction::None;
|
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 );
|
findClicked |= ImGui::InputTextWithHint( "###findzone", "Enter zone name to search for", m_findZone.pattern, 1024, ImGuiInputTextFlags_EnterReturnsTrue );
|
||||||
ImGui::PopItemWidth();
|
ImGui::PopItemWidth();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user