Common: Corrects Mac OS text navigation shortcuts in Scintilla

Ctrl-A moves cursor to beginning of current line in text box.
Ctrl-E moves cursor to the end of the line.
This change makes navigation in Scintilla text boxes consistent
with other text boxes in KiCad.

Fixes https://gitlab.com/kicad/code/kicad/issues/9996
This commit is contained in:
Scott Candey 2022-01-10 13:48:35 -08:00 committed by Ian McInerney
parent 2defd8d911
commit 23fdbe4b21
1 changed files with 2 additions and 2 deletions

View File

@ -281,11 +281,11 @@ void SCINTILLA_TRICKS::onCharHook( wxKeyEvent& aEvent )
#ifdef __WXMAC__
else if( aEvent.GetModifiers() == wxMOD_RAW_CONTROL && aEvent.GetKeyCode() == 'A' )
{
m_te->LineEndWrap();
m_te->HomeWrap();
}
else if( aEvent.GetModifiers() == wxMOD_RAW_CONTROL && aEvent.GetKeyCode() == 'E' )
{
m_te->HomeWrap();
m_te->LineEndWrap();
}
#endif
else if( aEvent.GetKeyCode() == WXK_SPECIAL20 )