Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 365442

Summary: Tab key in wrapped text widget
Product: [RT] RAP Reporter: Daria Huber <daria.spam>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 1.4   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Daria Huber CLA 2011-12-02 09:49:57 EST
Build Identifier: 

I build a custom text widget by wrapping org.eclipse.swt.widgets.Text by a composite:

Composite wrapperComposite = toolkit.createComposite(parent, SWT.NONE);
GridLayoutFactory.fillDefaults().applyTo(wrapperComposite);
GridDataFactory.swtDefaults().hint(width, height).applyTo(wrapperComposite);
this.text = toolkit.createText(wrapperComposite, style);
GridDataFactory.swtDefaults().grab(true, true).hint(width,height).align(SWT.FILL, SWT.FILL).applyTo(this.text);

If i use my custom text widgets then i can navigate between it only by pressing tab key twice. It happens only with RWT but not in SWT. What can i do?

Thanks


Reproducible: Always
Comment 1 Ivan Furnadjiev CLA 2011-12-02 12:05:56 EST
This bug is a duplicate of bug 321274. The workaround is to create the wrapped composite with NO_FOCUS style flag.

*** This bug has been marked as a duplicate of bug 321274 ***