Make sure OK button has focus when re-displaying ERC window.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/16541
This commit is contained in:
parent
c5bb939cc9
commit
392242b9a4
|
@ -397,6 +397,7 @@ void DIALOG_ERC::OnRunERCClick( wxCommandEvent& event )
|
|||
|
||||
m_ignoredList->SetColumnWidth( 0, m_ignoredList->GetParent()->GetClientSize().x - 20 );
|
||||
|
||||
m_cancelled = false;
|
||||
Raise();
|
||||
|
||||
m_runningResultsBook->ChangeSelection( 0 ); // Display the "Tests Running..." tab
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <sch_symbol.h>
|
||||
#include <id.h>
|
||||
#include <kiway.h>
|
||||
#include <kiplatform/ui.h>
|
||||
#include <confirm.h>
|
||||
#include <string_utils.h>
|
||||
#include <gal/graphics_abstraction_layer.h>
|
||||
|
@ -108,6 +109,8 @@ void EE_INSPECTION_TOOL::ShowERCDialog()
|
|||
|
||||
// Bring it to the top if already open. Dual monitor users need this.
|
||||
dlg->Raise();
|
||||
|
||||
KIPLATFORM::UI::ForceFocus( dlg->FindWindow( wxID_OK ) );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue