Bug 346471 - LayoutComposite takes focus (tab)
Summary: LayoutComposite takes focus (tab)
Status: RESOLVED DUPLICATE of bug 321274
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-19 11:16 EDT by Andreas Hoegger CLA
Modified: 2011-11-07 07:59 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Hoegger CLA 2011-05-19 11:16:52 EDT
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());
---
Comment 1 Andreas Hoegger CLA 2011-05-19 11:26:47 EDT
The behavior is reproducible with every class ? extends Composite.
Comment 2 Ivan Furnadjiev CLA 2011-05-20 10:58:11 EDT
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?
Comment 3 Sebastien Pinel CLA 2011-07-08 08:36:45 EDT
(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
Comment 4 Ivan Furnadjiev CLA 2011-11-07 07:59:50 EST
(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 ***