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:
parent
a150fade15
commit
a5777be7b0
@ -809,6 +809,14 @@ void wxWidgetCocoaImpl::SetupMouseEvent( wxMouseEvent &wxevent , NSEvent * nsEve
|
||||
}
|
||||
#endif
|
||||
|
||||
- (BOOL) canBecomeKeyView
|
||||
{
|
||||
wxWidgetCocoaImpl* viewimpl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( self );
|
||||
if ( viewimpl && viewimpl->GetWXPeer() )
|
||||
return viewimpl->GetWXPeer()->AcceptsFocus();
|
||||
return NO;
|
||||
}
|
||||
|
||||
@end // wxNSView
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user