Focus back to the main window after dialog

Mouse actions would focus the window but we explicitly set it here to
allow keyboard shortcuts

Fixes https://gitlab.com/kicad/code/kicad/-/issues/15603

(cherry picked from commit b2ef620ea6)
This commit is contained in:
Seth Hillbrand 2023-09-20 17:37:07 -07:00
parent fff95fa4e6
commit 5f16f4ab99
1 changed files with 6 additions and 0 deletions

View File

@ -282,6 +282,9 @@ bool DIALOG_SHIM::Show( bool show )
ret = wxDialog::Show( show );
}
if( m_parent )
m_parent->SetFocus();
return ret;
}
@ -483,6 +486,9 @@ int DIALOG_SHIM::ShowQuasiModal()
m_qmodal_showing = false;
if( parent )
parent->SetFocus();
return GetReturnCode();
}