mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-12 22:18:36 +00:00
Merge pull request #475 from cfrantz/fix-selectable
Combobox: Focus the selected item.
This commit is contained in:
commit
bf49265406
@ -203,6 +203,9 @@ impl<'a> ComboBox<'a> {
|
||||
*current_item = idx;
|
||||
result = true;
|
||||
}
|
||||
if selected {
|
||||
ui.set_item_default_focus();
|
||||
}
|
||||
}
|
||||
}
|
||||
result
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user