From c1889cefcfcdc38ea42ea84b45be84e419eeb757 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 4 Sep 2020 17:56:56 +0100 Subject: [PATCH] Try to make block-quote/unquote more keyboard-variation-friendly. Fixes https://gitlab.com/kicad/code/kicad/issues/git --- common/scintilla_tricks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/scintilla_tricks.cpp b/common/scintilla_tricks.cpp index 8c76a0efeb..00eefa5cac 100644 --- a/common/scintilla_tricks.cpp +++ b/common/scintilla_tricks.cpp @@ -147,7 +147,7 @@ void SCINTILLA_TRICKS::onCharHook( wxKeyEvent& aEvent ) else m_te->DeleteRange( m_te->GetSelectionStart(), 1 ); } - else if( ( aEvent.GetModifiers() == wxMOD_CONTROL && aEvent.GetKeyCode() == '/' ) ) + else if( ( aEvent.GetModifiers() == wxMOD_CONTROL && aEvent.GetUnicodeKey() == '/' ) ) { int startLine = m_te->LineFromPosition( m_te->GetSelectionStart() ); int endLine = m_te->LineFromPosition( m_te->GetSelectionEnd() );