Bug 324048 - Tab traversal of radio buttons has wrong order
Summary: Tab traversal of radio buttons has wrong order
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-30 23:18 EDT by Elias Volanakis CLA
Modified: 2010-08-31 12:54 EDT (History)
1 user (show)

See Also:


Attachments
Snippet (1.82 KB, text/plain)
2010-08-30 23:20 EDT, Elias Volanakis CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Volanakis CLA 2010-08-30 23:18:37 EDT
To reproduce:

1. launch attached snippet
2. press tab several times

The tab order is out of order: text, check A, check B, radio A (!)

Expected: tab order same as widget order: text, radio A, check A, check B

Workaround: resetting the tab oder via  parent.setTabList( new Control[] { ... } )  works around the problem.
Comment 1 Elias Volanakis CLA 2010-08-30 23:20:34 EDT
Created attachment 177800 [details]
Snippet
Comment 2 Felipe Heidrich CLA 2010-08-31 10:15:30 EDT
Radio buttons are not tab groups (they are tab items).
Tab is used to move the focus from group to group.
Within a tab group use arrow keys to move the focus from tab item to tab item.

This behaviour was design based on the default platform behaviour of Windows and it is consistent across all our platforms. I can not change this. Sorry.

Another way to fix is:

	final Composite parent = new Composite(shell, SWT.NONE);
	parent.setLayout(new GridLayout(6, true));

	new Text(parent, SWT.BORDER);
	Composite parent2 = new Composite(parent, SWT.BORDER);
	parent2.setLayout(new FillLayout());
	new Button(parent2, SWT.RADIO).setText("RadioA");
	new Button(parent2, SWT.RADIO).setText("RadioB");
	new Button(parent, SWT.CHECK).setText("CheckA");
	new Button(parent, SWT.CHECK).setText("CheckB");
	
(this way it is more explicity that you have a tab group containing both radio groups).

closing as wont fix.
Comment 3 Elias Volanakis CLA 2010-08-31 12:54:17 EDT
Ok, thanks for the info. 

Elias.