Don't translate grave accents to themselves

NOTE: because SCINTILLA_TRICKS is using a wxEVT_CHAR_HOOK,
it doesn't get the translated keycodes, so both ` and ~
look like ` to the call to ConvertSmartQuotesAndDashes

Fixes https://gitlab.com/kicad/code/kicad/-/issues/6171
This commit is contained in:
Jon Evans 2020-10-25 18:58:11 -04:00
parent 2ee61f52ca
commit dfa1024c7e
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ bool ConvertSmartQuotesAndDashes( wxString* aString )
for( wxString::iterator ii = aString->begin(); ii != aString->end(); ++ii ) for( wxString::iterator ii = aString->begin(); ii != aString->end(); ++ii )
{ {
if( *ii == L'\u0060' || *ii == L'\u00B4' || *ii == L'\u2018' || *ii == L'\u2019' ) if( *ii == L'\u00B4' || *ii == L'\u2018' || *ii == L'\u2019' )
{ {
*ii = '\''; *ii = '\'';
retVal = true; retVal = true;
@ -835,4 +835,4 @@ void StripTrailingZeros( wxString& aStringValue, unsigned aTrailingZeroAllowed )
break; break;
} }
} }
} }