git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64419
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- if ( evtType == wxEVT_MOTION ||
- evtType == wxEVT_LEFT_DOWN ||
- evtType == wxEVT_RIGHT_DOWN )
- {
- // Block motion and click events outside the popup
- if ( !isInside || !m_combo->IsPopupShown() )
- {
- event.Skip(false);
- }
+ // Block motion and click events outside the popup
+ if ( (!isInside || !m_combo->IsPopupShown())
+ &&
+ (evtType == wxEVT_MOTION ||
+ evtType == wxEVT_LEFT_DOWN ||
+ evtType == wxEVT_LEFT_UP ||
+ evtType == wxEVT_RIGHT_DOWN) )
+ {
+ event.Skip(false);
}
else if ( evtType == wxEVT_LEFT_UP )
{
}
else if ( evtType == wxEVT_LEFT_UP )
{