← Back to team overview

kicad-developers team mailing list archive

Re: TODO.txt item L1)

 

--- In kicad-devel@xxxxxxxxxxxxxxx, Dick Hollenbeck <dick@...> wrote:
>
> Can somebody spend some time and do some research on this L1) problem 
> for me please?
> 
> See TODO.txt.
> 
Dick,
I believe wxWidget has no problem:
the bug is in passOnFocus()
passOnFocus() assume this is the parent that had the focus:


void LAYER_WIDGET::passOnFocus()
{
wxWindow* parent = GetParent();
parent->SetFocus();
}

This is false, and the focus is not set to the right window.


Here is a change in layer_widget.cpp that fixes this problem:

1)
parent->SetFocus();
changed to
// parent->SetFocus();

2) Line 630
wxWindow* w = FindFocus();
getLayerComp( newNdx + 1 /* 1 is column */ )->SetFocus();
if ( w ) w->SetFocus();


This is an ugly hack, that needs to be more tested, but it works.


Jean-Pierre Charras









Follow ups

References