avoid infinite recursion for richtooltops, (hopefully) fixes #15070
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
a5777be7b0
commit
b09857ae00
@ -812,7 +812,7 @@ void wxWidgetCocoaImpl::SetupMouseEvent( wxMouseEvent &wxevent , NSEvent * nsEve
|
||||
- (BOOL) canBecomeKeyView
|
||||
{
|
||||
wxWidgetCocoaImpl* viewimpl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( self );
|
||||
if ( viewimpl && viewimpl->GetWXPeer() )
|
||||
if ( viewimpl && viewimpl->IsUserPane() && viewimpl->GetWXPeer() )
|
||||
return viewimpl->GetWXPeer()->AcceptsFocus();
|
||||
return NO;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user