Refocus control after doing our little raise/raise dance.
Fixes: lp:1821451
* https://bugs.launchpad.net/kicad/+bug/1821451
(cherry picked from commit 4020b5689b
)
This commit is contained in:
parent
4e2d900775
commit
3edad56e6b
|
@ -811,8 +811,12 @@ void CVPCB_MAINFRAME::CreateScreenCmp()
|
||||||
// So we want to put it to front, second after our CVPCB_MAINFRAME.
|
// So we want to put it to front, second after our CVPCB_MAINFRAME.
|
||||||
// We do this by a little dance of bringing it to front then the main
|
// We do this by a little dance of bringing it to front then the main
|
||||||
// frame back.
|
// frame back.
|
||||||
|
wxWindow* focus = FindFocus();
|
||||||
|
|
||||||
fpframe->Raise(); // Make sure that is visible.
|
fpframe->Raise(); // Make sure that is visible.
|
||||||
Raise(); // .. but still we want the focus.
|
Raise(); // .. but still we want the focus.
|
||||||
|
|
||||||
|
focus->SetFocus();
|
||||||
}
|
}
|
||||||
|
|
||||||
fpframe->InitDisplay();
|
fpframe->InitDisplay();
|
||||||
|
|
Loading…
Reference in New Issue