mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-25 04:18:46 +00:00
Focus the selected item.
This commit is contained in:
parent
a78fb45497
commit
801c9109a4
@ -203,6 +203,9 @@ impl<'a> ComboBox<'a> {
|
|||||||
*current_item = idx;
|
*current_item = idx;
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
|
if selected {
|
||||||
|
ui.set_item_default_focus();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
result
|
result
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user