Avoid disabling comboboxes completely on 10.4 (caused by rev 56156)

See also ticket 10047


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@61100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2009-06-17 21:31:50 +00:00
parent c23b675f92
commit 7cc504b42d

View File

@@ -154,6 +154,13 @@ protected:
void OnFocus( wxFocusEvent& event )
{
// Unfortunately the fix below completely disables the combobox on Mac OS 10.4 (and presumably below)
if (UMAGetSystemVersion() <= 0x1040)
{
event.Skip();
return;
}
// in case the textcontrol gets the focus we propagate
// it to the parent's handlers.
wxFocusEvent evt2(event.GetEventType(),m_cb->GetId());