Disable automatic "smart" quotes substitution in wxOSX wxTextCtrl

Disable ASCII quotes substitution with "more typographically accurate"
symbols, just as we already do it for the dashes substitution.

While disabling this unconditionally might not be perfect, it's better than
unconditionally leaving this enabled (and this is on by default since OS X
10.9).

Closes #15705.

Closes https://github.com/wxWidgets/wxWidgets/pull/241
This commit is contained in:
Xlord2 2016-03-02 19:01:14 +01:00 committed by Vadim Zeitlin
parent 3532f48d44
commit c07523734f
2 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,11 @@ wxMSW:
- Fix crash when using wxCHMHelpController() in 64 bit builds (Xlord2).
wxOSX:
- Turn off automatic quotes substitutions in wxTextCtrl (Xlord2).
3.1.0: (released 2016-02-29)
----------------------------

View File

@ -621,6 +621,7 @@ wxNSTextViewControl::wxNSTextViewControl( wxTextCtrl *wxPeer, WXWidget w, long s
[tv setHorizontallyResizable:hasHScroll];
[tv setAutoresizingMask:NSViewWidthSizable];
[tv setAutomaticDashSubstitutionEnabled:false];
[tv setAutomaticQuoteSubstitutionEnabled:false];
if ( hasHScroll )
{