Show dropdown when editing is started

This commit is contained in:
Ocraftyone 2023-11-19 02:10:15 -05:00
parent 3f0083c5a7
commit 6e7dfc54e4
No known key found for this signature in database
GPG key ID: 85836ED21AD4D125
4 changed files with 16 additions and 15 deletions

View file

@ -5485,6 +5485,10 @@ void ObjectList::ItemValueChanged(wxDataViewEvent &event)
// Here the last active column is forgotten, so when leaving the editing mode, the next mouse click will not enter the editing mode of the newly selected column.
void ObjectList::OnEditingStarted(wxDataViewEvent &event)
{
if (event.GetColumn() == colFilament) {
::ComboBox*c = static_cast<::ComboBox *>(event.GetDataViewColumn()->GetRenderer()->GetEditorCtrl());
c->ToggleDropDown();
}
#ifdef __WXMSW__
m_last_selected_column = -1;
#else