Merge pull request #475 from cfrantz/fix-selectable

Combobox: Focus the selected item.
This commit is contained in:
Jonathan Spira 2021-09-02 18:01:50 -04:00 committed by GitHub
commit bf49265406
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,6 +203,9 @@ impl<'a> ComboBox<'a> {
*current_item = idx;
result = true;
}
if selected {
ui.set_item_default_focus();
}
}
}
result