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:
parent
2ee61f52ca
commit
dfa1024c7e
|
@ -46,7 +46,7 @@ bool ConvertSmartQuotesAndDashes( wxString* aString )
|
|||
|
||||
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 = '\'';
|
||||
retVal = true;
|
||||
|
|
Loading…
Reference in New Issue