mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Enter key in find zone menu acts the same as pressing "find".
This commit is contained in:
parent
7fc03736f2
commit
24235406a0
@ -4710,14 +4710,16 @@ void View::DrawFindZone()
|
||||
return;
|
||||
}
|
||||
|
||||
bool findClicked = false;
|
||||
|
||||
ImGui::PushItemWidth( -0.01f );
|
||||
ImGui::InputText( "", m_findZone.pattern, 1024 );
|
||||
findClicked |= ImGui::InputText( "", m_findZone.pattern, 1024, ImGuiInputTextFlags_EnterReturnsTrue );
|
||||
ImGui::PopItemWidth();
|
||||
|
||||
#ifdef TRACY_EXTENDED_FONT
|
||||
const bool findClicked = ImGui::Button( ICON_FA_SEARCH " Find" );
|
||||
findClicked |= ImGui::Button( ICON_FA_SEARCH " Find" );
|
||||
#else
|
||||
const bool findClicked = ImGui::Button( "Find" );
|
||||
findClicked |= ImGui::Button( "Find" );
|
||||
#endif
|
||||
ImGui::SameLine();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user