From 23fdbe4b217b5a474a9f281b9f0bdd4dfbcf2b10 Mon Sep 17 00:00:00 2001 From: Scott Candey Date: Mon, 10 Jan 2022 13:48:35 -0800 Subject: [PATCH] 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 --- common/scintilla_tricks.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/scintilla_tricks.cpp b/common/scintilla_tricks.cpp index eaf3a42118..9f8f54f78f 100644 --- a/common/scintilla_tricks.cpp +++ b/common/scintilla_tricks.cpp @@ -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 )