Add a couple of OSX-standard keyboard cmds to Scintilla.

Fixes https://gitlab.com/kicad/code/kicad/issues/8865
This commit is contained in:
Jeff Young 2021-07-26 21:14:22 +01:00
parent c71ab17892
commit a2cb3e916a
1 changed files with 10 additions and 0 deletions

View File

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