proper focus lost for multiline textfields and having all demanding a focusrect

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2011-03-02 21:17:43 +00:00
parent d5bda0b2bd
commit 9159a25799

View File

@@ -218,6 +218,16 @@ protected :
return [self isEditable];
}
- (void)textDidEndEditing:(NSNotification *)aNotification
{
wxUnusedVar(aNotification);
wxWidgetCocoaImpl* impl = (wxWidgetCocoaImpl* ) wxWidgetImpl::FindFromWXWidget( self );
if ( impl )
{
impl->DoNotifyFocusEvent( false, NULL );
}
}
@end
@implementation wxNSTextField
@@ -764,6 +774,7 @@ wxWidgetImplType* wxWidgetImpl::CreateTextControl( wxTextCtrl* wxpeer,
c = new wxNSTextFieldControl( wxpeer, wxpeer, v );
}
c->SetNeedsFocusRect( true );
return c;
}