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
This commit is contained in:
Jeff Young 2023-04-09 21:24:23 +01:00
parent ea59d583d5
commit 9252793fdb
1 changed files with 4 additions and 0 deletions

View File

@ -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;