Don’t add non-default focus ring to NSTextView

NSTextView does not natively show a focus ring by default, and it is
extremely rare thing to do in native applications.

Don't do it in wxTextCtrl either.
This commit is contained in:
Václav Slavík
2020-08-30 18:35:45 +02:00
parent 9f66b03c5c
commit 9c5abea266
2 changed files with 0 additions and 5 deletions

View File

@@ -460,10 +460,6 @@ void wxGridCellTextEditor::DoCreate(wxWindow* parent,
text->SetMargins(0, 0);
m_control = text;
#ifdef __WXOSX__
wxWidgetImpl* impl = m_control->GetPeer();
impl->EnableFocusRing(false);
#endif
// set max length allowed in the textctrl, if the parameter was set
if ( m_maxChars != 0 )
{

View File

@@ -1590,7 +1590,6 @@ wxWidgetImplType* wxWidgetImpl::CreateTextControl( wxTextCtrl* wxpeer,
v = [[wxNSTextScrollView alloc] initWithFrame:r];
wxNSTextViewControl* t = new wxNSTextViewControl( wxpeer, v, style );
c = t;
c->EnableFocusRing( true );
t->SetStringValue(str);
}