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
This commit is contained in:
Seth Hillbrand 2023-09-20 17:37:07 -07:00
parent f97af9f254
commit b2ef620ea6
1 changed files with 6 additions and 0 deletions

View File

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