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:
parent
f97af9f254
commit
b2ef620ea6
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue