mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool findClicked = false;
|
||||||
|
|
||||||
ImGui::PushItemWidth( -0.01f );
|
ImGui::PushItemWidth( -0.01f );
|
||||||
ImGui::InputText( "", m_findZone.pattern, 1024 );
|
findClicked |= ImGui::InputText( "", m_findZone.pattern, 1024, ImGuiInputTextFlags_EnterReturnsTrue );
|
||||||
ImGui::PopItemWidth();
|
ImGui::PopItemWidth();
|
||||||
|
|
||||||
#ifdef TRACY_EXTENDED_FONT
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
const bool findClicked = ImGui::Button( ICON_FA_SEARCH " Find" );
|
findClicked |= ImGui::Button( ICON_FA_SEARCH " Find" );
|
||||||
#else
|
#else
|
||||||
const bool findClicked = ImGui::Button( "Find" );
|
findClicked |= ImGui::Button( "Find" );
|
||||||
#endif
|
#endif
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user