Browse Source

Fix save accelerator key handling when library tree has focus.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8247
6.0.7
Wayne Stambaugh 5 years ago
parent
commit
16bb45208a
  1. 5
      eeschema/symbol_editor/symbol_edit_frame.cpp
  2. 5
      pcbnew/footprint_edit_frame.cpp

5
eeschema/symbol_editor/symbol_edit_frame.cpp

@ -223,6 +223,11 @@ SYMBOL_EDIT_FRAME::SYMBOL_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
KIPLATFORM::APP::SetShutdownBlockReason( this, _( "Library changes are unsaved" ) );
// Catch unhandled accelerator command characters that were no handled by the library tree
// panel.
Bind( wxEVT_CHAR, &TOOL_DISPATCHER::DispatchWxEvent, m_toolDispatcher );
Bind( wxEVT_CHAR_HOOK, &TOOL_DISPATCHER::DispatchWxEvent, m_toolDispatcher );
// Ensure the window is on top
Raise();
}

5
pcbnew/footprint_edit_frame.cpp

@ -283,6 +283,11 @@ FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent,
// Default shutdown reason until a file is loaded
KIPLATFORM::APP::SetShutdownBlockReason( this, _( "Footprint changes are unsaved" ) );
// Catch unhandled accelerator command characters that were no handled by the library tree
// panel.
Bind( wxEVT_CHAR, &TOOL_DISPATCHER::DispatchWxEvent, m_toolDispatcher );
Bind( wxEVT_CHAR_HOOK, &TOOL_DISPATCHER::DispatchWxEvent, m_toolDispatcher );
// Ensure the window is on top
Raise();
Show( true );

Loading…
Cancel
Save