From c07523734f2d93a8c9042d80fdd458954b0e1d41 Mon Sep 17 00:00:00 2001 From: Xlord2 Date: Wed, 2 Mar 2016 19:01:14 +0100 Subject: [PATCH] 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 --- docs/changes.txt | 5 +++++ src/osx/cocoa/textctrl.mm | 1 + 2 files changed, 6 insertions(+) diff --git a/docs/changes.txt b/docs/changes.txt index c16973f842..56733f93a9 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -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) ---------------------------- diff --git a/src/osx/cocoa/textctrl.mm b/src/osx/cocoa/textctrl.mm index 46aa8f3caa..d1a99496c7 100644 --- a/src/osx/cocoa/textctrl.mm +++ b/src/osx/cocoa/textctrl.mm @@ -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 ) {