From 4354fa7bde44ebc48cbb90b05a8dcc91c37b3553 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sat, 5 Sep 2020 22:41:25 +0100 Subject: [PATCH] Another try at a solution for ctrl-/. Fixes https://gitlab.com/kicad/code/kicad/issues/5480 --- common/scintilla_tricks.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/scintilla_tricks.cpp b/common/scintilla_tricks.cpp index 00eefa5cac..c1caab275a 100644 --- a/common/scintilla_tricks.cpp +++ b/common/scintilla_tricks.cpp @@ -147,7 +147,8 @@ void SCINTILLA_TRICKS::onCharHook( wxKeyEvent& aEvent ) else m_te->DeleteRange( m_te->GetSelectionStart(), 1 ); } - else if( ( aEvent.GetModifiers() == wxMOD_CONTROL && aEvent.GetUnicodeKey() == '/' ) ) + else if( aEvent.ControlDown() && !aEvent.MetaDown() && !aEvent.AltDown() + && aEvent.GetUnicodeKey() == '/' ) { int startLine = m_te->LineFromPosition( m_te->GetSelectionStart() ); int endLine = m_te->LineFromPosition( m_te->GetSelectionEnd() );