From 4fecf6c50de93ac2c885db3b2c6f3f675ecc3441 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 9 Apr 2023 21:24:23 +0100 Subject: [PATCH] Add select-all to TEXT_ENTRY_TRICKS. Fixes https://gitlab.com/kicad/code/kicad/issues/14237 Fixes https://gitlab.com/kicad/code/kicad/issues/13304 (cherry picked from commit 9252793fdb5f373f54bb9bbd5455ad305eabd97d) --- common/textentry_tricks.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/textentry_tricks.cpp b/common/textentry_tricks.cpp index bcae728078..7ec0162a76 100644 --- a/common/textentry_tricks.cpp +++ b/common/textentry_tricks.cpp @@ -41,6 +41,10 @@ void TEXTENTRY_TRICKS::OnCharHook( wxTextEntry* aTextEntry, wxKeyEvent& aEvent ) { aTextEntry->Paste(); } + else if( aEvent.GetModifiers() == wxMOD_CONTROL && aEvent.GetKeyCode() == 'A' ) + { + aTextEntry->SelectAll(); + } else if( aEvent.GetKeyCode() == WXK_BACK ) { long start, end;