Another try at a solution for ctrl-/.

Fixes https://gitlab.com/kicad/code/kicad/issues/5480
This commit is contained in:
Jeff Young 2020-09-05 22:41:25 +01:00
parent 1be1205734
commit 4354fa7bde
1 changed files with 2 additions and 1 deletions

View File

@ -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() );