View | Details | Raw Unified | Return to issue 58312
Collapse All | Expand All

(-)vcl/source/control/combobox.cxx (-7 / +5 lines)
Lines 804-817 Link Here
804
804
805
long ComboBox::PreNotify( NotifyEvent& rNEvt )
805
long ComboBox::PreNotify( NotifyEvent& rNEvt )
806
{
806
{
807
	long nDone = 0;
808
807
809
	if( ( rNEvt.GetType() == EVENT_MOUSEBUTTONDOWN ) && ( rNEvt.GetWindow() == mpImplLB->GetMainWindow() ) )
808
	return Edit::PreNotify( rNEvt );
810
	{
811
		mpSubEdit->GrabFocus();
812
	}
813
814
	return nDone ? nDone : Edit::PreNotify( rNEvt );
815
}
809
}
816
810
817
// -----------------------------------------------------------------------
811
// -----------------------------------------------------------------------
Lines 890-895 Link Here
890
            nDone = 0;  // don't eat this event, let the default handling happen (i.e. scroll the context)
884
            nDone = 0;  // don't eat this event, let the default handling happen (i.e. scroll the context)
891
        }
885
        }
892
	}
886
	}
887
    else if( ( rNEvt.GetType() == EVENT_MOUSEBUTTONDOWN ) && ( rNEvt.GetWindow() == mpImplLB->GetMainWindow() ) )
888
	{
889
		mpSubEdit->GrabFocus();
890
	}
893
891
894
	return nDone ? nDone : Edit::Notify( rNEvt );
892
	return nDone ? nDone : Edit::Notify( rNEvt );
895
}
893
}

Return to issue 58312