diff --git a/pcbnew/dialogs/dialog_enum_pads.cpp b/pcbnew/dialogs/dialog_enum_pads.cpp index 0323f0c25d..55a0bee0db 100644 --- a/pcbnew/dialogs/dialog_enum_pads.cpp +++ b/pcbnew/dialogs/dialog_enum_pads.cpp @@ -3,7 +3,7 @@ * * Copyright (C) 2014 CERN * @author Maciej Suminski - * Copyright (C) 2014-2023 KiCad Developers, see AUTHORS.txt for contributors. + * Copyright (C) 2014-2024 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -35,6 +35,11 @@ DIALOG_ENUM_PADS::DIALOG_ENUM_PADS( wxWindow* aParent, m_padNumStep->SetValue( m_params.m_step ); m_padPrefix->SetValue( m_params.m_prefix.value_or( "" ) ); + SetInitialFocus( m_padPrefix ); + + if( m_stdButtons->GetAffirmativeButton() ) + m_stdButtons->GetAffirmativeButton()->SetDefault(); + // Now all widgets have the size fixed, call FinishDialogSettings finishDialogSettings(); }