also a dialog needs the current events set up correctly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70695 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -267,7 +267,18 @@ bool shouldHandleSelector(SEL selector)
|
||||
- (void)sendEvent:(NSEvent *) event
|
||||
{
|
||||
if ( ![self WX_filterSendEvent: event] )
|
||||
{
|
||||
WXEVENTREF formerEvent = wxTheApp == NULL ? NULL : wxTheApp->MacGetCurrentEvent();
|
||||
WXEVENTHANDLERCALLREF formerHandler = wxTheApp == NULL ? NULL : wxTheApp->MacGetCurrentEventHandlerCallRef();
|
||||
|
||||
if (wxTheApp)
|
||||
wxTheApp->MacSetCurrentEvent(event, NULL);
|
||||
|
||||
[super sendEvent: event];
|
||||
|
||||
if (wxTheApp)
|
||||
wxTheApp->MacSetCurrentEvent(formerEvent , formerHandler);
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
Reference in New Issue
Block a user