From e59867d479a6ee2b014e1f64c9a686c3691ff0bc Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 8 May 2023 18:40:59 +0100 Subject: [PATCH] Add backspace modifier handling to SCINTILLA_TRICKS. Fixes https://gitlab.com/kicad/code/kicad/issues/13910 --- common/scintilla_tricks.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/common/scintilla_tricks.cpp b/common/scintilla_tricks.cpp index 734f31f6ac..96b2f8ed12 100644 --- a/common/scintilla_tricks.cpp +++ b/common/scintilla_tricks.cpp @@ -242,6 +242,13 @@ void SCINTILLA_TRICKS::onCharHook( wxKeyEvent& aEvent ) } else if( aEvent.GetKeyCode() == WXK_BACK ) { + if( aEvent.GetModifiers() == wxMOD_CONTROL ) +#ifdef __WXMAC__ + m_te->HomeExtend(); + else if( aEvent.GetModifiers() == wxMOD_ALT ) +#endif + m_te->WordLeftExtend(); + m_te->DeleteBack(); } else if( aEvent.GetKeyCode() == WXK_DELETE )