From: Kevin Ollivier <kevino@theolliviers.com>
Date: Tue, 31 Oct 2006 23:38:15 +0000 (+0000)
Subject: Explicitly forward non-command events along to the native control first.
X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/90347071972cdb55939ab416672bf74b3e6218a0

Explicitly forward non-command events along to the native control first.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42877 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---

diff --git a/src/mac/carbon/listctrl_mac.cpp b/src/mac/carbon/listctrl_mac.cpp
index 3e68168a22..9b5bb81a40 100644
--- a/src/mac/carbon/listctrl_mac.cpp
+++ b/src/mac/carbon/listctrl_mac.cpp
@@ -296,6 +296,11 @@ bool wxMacListCtrlEventDelegate::ProcessEvent( wxEvent& event )
     event.SetEventObject( m_list );
     event.SetId( m_id );
     
+    if ( !event.IsKindOf( CLASSINFO( wxCommandEvent ) ) )
+    {
+        if (m_list->GetEventHandler()->ProcessEvent( event ))
+            return true;
+    } 
     return wxEvtHandler::ProcessEvent(event);
 }