InputText: using MixedValue automatically sets ImGuiInputTextFlags_AutoSelectAll. (#5518, #5677, #6865)
This commit is contained in:
parent
04b37d6d23
commit
dd32dace81
@ -4951,7 +4951,7 @@ bool ImGui::InputTextEx(const char* label, const char* hint, char* buf, int buf_
|
|||||||
|
|
||||||
if (!is_multiline)
|
if (!is_multiline)
|
||||||
{
|
{
|
||||||
if (flags & ImGuiInputTextFlags_AutoSelectAll)
|
if ((flags & ImGuiInputTextFlags_AutoSelectAll) || is_mixed)
|
||||||
select_all = true;
|
select_all = true;
|
||||||
if (input_requested_by_nav && (!recycle_state || !(g.NavActivateFlags & ImGuiActivateFlags_TryToPreserveState)))
|
if (input_requested_by_nav && (!recycle_state || !(g.NavActivateFlags & ImGuiActivateFlags_TryToPreserveState)))
|
||||||
select_all = true;
|
select_all = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user