Send event on toggle deselecting

This commit is contained in:
Kvaz1r
2021-07-17 20:48:31 +03:00
parent 0a241d2dfc
commit 1e680157a9

View File

@@ -1156,7 +1156,10 @@ bool wxListBox::PerformAction(const wxControlAction& action,
item = m_current; item = m_current;
if ( IsSelected(item) ) if ( IsSelected(item) )
{
DoUnselect(item); DoUnselect(item);
SendEvent(wxEVT_LISTBOX);
}
else else
SelectAndNotify(item); SelectAndNotify(item);
} }