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:
parent
2defd8d911
commit
23fdbe4b21
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue