wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( self );
if ( impl )
{
- impl->DoNotifyFocusEvent( false, NULL );
+ NSResponder * responder = wxNonOwnedWindowCocoaImpl::GetNextFirstResponder();
+ NSView* otherView = [responder isKindOfClass:[NSView class]] ? (NSView*)responder : nil;
+
+ wxWidgetImpl* otherWindow = impl->FindFromWXWidget(otherView);
+ impl->DoNotifyFocusEvent( false, otherWindow );
}
}
wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( self );
if ( impl )
{
- impl->DoNotifyFocusEvent( false, NULL );
+ NSResponder * responder = wxNonOwnedWindowCocoaImpl::GetNextFirstResponder();
+ NSView* otherView = [responder isKindOfClass:[NSView class]] ? (NSView*)responder : nil;
+
+ wxWidgetImpl* otherWindow = impl->FindFromWXWidget(otherView);
+ impl->DoNotifyFocusEvent( false, otherWindow );
}
}
timpl->SetInternalSelection(range.location, range.location + range.length);
}
- impl->DoNotifyFocusEvent( false, NULL );
+ NSResponder * responder = wxNonOwnedWindowCocoaImpl::GetNextFirstResponder();
+ NSView* otherView = [responder isKindOfClass:[NSView class]] ? (NSView*)responder : nil;
+
+ wxWidgetImpl* otherWindow = impl->FindFromWXWidget(otherView);
+ impl->DoNotifyFocusEvent( false, otherWindow );
}
}
@end