Don't allow rich text content in non-rich wxTextCtrl in wxOSX.
Explicitly disable rich text content and automatic quotation marks replacement in normal multiline text controls to make them behave closer to single line ones and also multiline ones on other platforms. See #16805.
This commit is contained in:
@@ -580,6 +580,12 @@ wxNSTextViewControl::wxNSTextViewControl( wxTextCtrl *wxPeer, WXWidget w )
|
||||
[tv setHorizontallyResizable:NO];
|
||||
[tv setAutoresizingMask:NSViewWidthSizable];
|
||||
|
||||
if ( !wxPeer->HasFlag(wxTE_RICH | wxTE_RICH2) )
|
||||
{
|
||||
[tv setRichText:NO];
|
||||
[tv setAutomaticQuoteSubstitutionEnabled:NO];
|
||||
}
|
||||
|
||||
[m_scrollView setDocumentView: tv];
|
||||
|
||||
[tv setDelegate: tv];
|
||||
|
Reference in New Issue
Block a user