Community
Participate
Working Groups
By creating a Composite using FormToolkit.createComposite(..) a 'org.eclipse.ui.forms.widgets.LayoutComposite' is returned. Tabbing over the controls the LayoutComposite grabs the focus for some reason. To reproduce use the following example: --- Composite c1 = new FormToolkit(parent.getDisplay()).createComposite(parent, SWT.NONE); Text t = new Text(c1, SWT.BORDER); Composite c2 = new Composite(parent, SWT.NONE); Text t1 = new Text(c2, SWT.BORDER); parent.setLayout(new GridLayout(2, true)); c1.setLayout(new FillLayout()); c2.setLayout(new FillLayout()); ---
The behavior is reproducible with every class ? extends Composite.
Andreas, could you elaborate a little bit what do you mean by "grab" focus. What do you expect and how RAP behaves? What is the difference?
(In reply to comment #0) > By creating a Composite using FormToolkit.createComposite(..) a > 'org.eclipse.ui.forms.widgets.LayoutComposite' is returned. > Tabbing over the controls the LayoutComposite grabs the focus for some reason. > To reproduce use the following example: > > --- > Composite c1 = new FormToolkit(parent.getDisplay()).createComposite(parent, > SWT.NONE); > Text t = new Text(c1, SWT.BORDER); > > Composite c2 = new Composite(parent, SWT.NONE); > Text t1 = new Text(c2, SWT.BORDER); > > parent.setLayout(new GridLayout(2, true)); > c1.setLayout(new FillLayout()); > c2.setLayout(new FillLayout()); > --- I think this is linked to https://bugs.eclipse.org/bugs/show_bug.cgi?id=321274
(In reply to comment #3) > I think this is linked to https://bugs.eclipse.org/bugs/show_bug.cgi?id=321274 I think that this issue is the same with bug 321274. That's why I will close it as a duplicate of it. *** This bug has been marked as a duplicate of bug 321274 ***