don't send EVT_CHOICE events while the dropdown is opened for consistency with the other platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -647,6 +647,9 @@ bool wxChoice::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case CBN_SELCHANGE:
|
case CBN_SELCHANGE:
|
||||||
|
// don't generate any events while the dropdown is opened as the
|
||||||
|
// selection is not final yet
|
||||||
|
if ( m_lastAcceptedSelection == wxID_NONE )
|
||||||
{
|
{
|
||||||
const int n = GetSelection();
|
const int n = GetSelection();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user