From 53389442b89c37bf9e5201d4bd5a1a113ca52483 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 7 Sep 2020 12:35:49 +0100 Subject: [PATCH] Add Ctrl+A (select all) to scintilla tricks. Fixes https://gitlab.com/kicad/code/kicad/issues/5538 --- common/scintilla_tricks.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/scintilla_tricks.cpp b/common/scintilla_tricks.cpp index be77e7bedb..cb0ac2b7cc 100644 --- a/common/scintilla_tricks.cpp +++ b/common/scintilla_tricks.cpp @@ -140,6 +140,10 @@ void SCINTILLA_TRICKS::onCharHook( wxKeyEvent& aEvent ) { m_te->Redo(); } + else if( aEvent.GetModifiers() == wxMOD_CONTROL && aEvent.GetKeyCode() == 'A' ) + { + m_te->SelectAll(); + } else if( aEvent.GetModifiers() == wxMOD_CONTROL && aEvent.GetKeyCode() == 'X' ) { m_te->Cut();