implementing canBecomeKeyView for user panes, native focus support, fixes #15070
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -809,6 +809,14 @@ void wxWidgetCocoaImpl::SetupMouseEvent( wxMouseEvent &wxevent , NSEvent * nsEve
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
- (BOOL) canBecomeKeyView
|
||||||
|
{
|
||||||
|
wxWidgetCocoaImpl* viewimpl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( self );
|
||||||
|
if ( viewimpl && viewimpl->GetWXPeer() )
|
||||||
|
return viewimpl->GetWXPeer()->AcceptsFocus();
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
|
|
||||||
@end // wxNSView
|
@end // wxNSView
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user