From 969c28864fc0e8a3777669c712be55abd43f00a0 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 26 Feb 2025 18:47:21 +0000 Subject: [PATCH] Apply List Hotkeys fix to Edit Hotkeys. Fixes https://gitlab.com/kicad/code/kicad/-/issues/19989 --- common/eda_base_frame.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/common/eda_base_frame.cpp b/common/eda_base_frame.cpp index 5b8019ecbe..36bea6e727 100644 --- a/common/eda_base_frame.cpp +++ b/common/eda_base_frame.cpp @@ -24,6 +24,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */ +#include "kicad_manager_frame.h" #include #include @@ -1088,7 +1089,15 @@ void EDA_BASE_FRAME::ShowPreferences( wxString aStartPage, wxString aStartParent KIFACE* kiface = nullptr; std::vector expand; - Kiway().GetActions( hotkeysPanel->ActionsList() ); + wxWindow* kicadMgr_window = wxWindow::FindWindowByName( KICAD_MANAGER_FRAME_NAME ); + + if( KICAD_MANAGER_FRAME* kicadMgr = static_cast( kicadMgr_window ) ) + { + ACTION_MANAGER* actionMgr = kicadMgr->GetToolManager()->GetActionManager(); + + for( const auto& [name, action] : actionMgr->GetActions() ) + hotkeysPanel->ActionsList().push_back( action ); + } book->AddLazyPage( []( wxWindow* aParent ) -> wxWindow*