X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c5c9378c98eb13fc214acb01cd66deec6913fa43..205b0c9c6aa69c02a7774846e677910bf1609a53:/src/mac/app.cpp diff --git a/src/mac/app.cpp b/src/mac/app.cpp index 39edccb181..3fd3606748 100644 --- a/src/mac/app.cpp +++ b/src/mac/app.cpp @@ -299,6 +299,8 @@ void wxApp::MacNewFile() // handling the quit event is not recommended by apple // rather using the quit apple event - which we do + { kEventClassAppleEvent , kEventAppleEvent } , + { kEventClassMouse , kEventMouseDown } , } ; @@ -428,6 +430,13 @@ pascal OSStatus wxAppEventHandler( EventHandlerCallRef handler , EventRef event case kEventClassMouse : result = MouseEventHandler( handler , event , data ) ; break ; + case kEventClassAppleEvent : + { + EventRecord rec ; + wxMacConvertEventToRecord( event , &rec ) ; + result = AEProcessAppleEvent( &rec ) ; + } + break ; default : break ; }