fpviewer: Second go at preventing focus stealing

Fixes: lp:1841565
* https://bugs.launchpad.net/kicad/+bug/1841565
This commit is contained in:
Seth Hillbrand 2019-08-30 07:03:39 -07:00
parent 102f6d69c4
commit 69b6052d6f
1 changed files with 2 additions and 0 deletions

View File

@ -245,6 +245,8 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent
// after changing something to the aui manager call Update() to reflect the changes
m_auimgr.Update();
// The canvas should not steal the focus from the list boxes
GetCanvas()->SetCanFocus( false );
GetCanvas()->GetGAL()->SetAxesEnabled( true );
GetCanvas()->GetView()->SetScale( GetZoomLevelCoeff() / GetScreen()->GetZoom() );
ActivateGalCanvas();