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

Bug 8302

Summary: Tabbing into a toolbar with all disabled items shows nothing
Product: [Eclipse Project] Platform Reporter: Simon Arsenault <simon_arsenault>
Component: SWTAssignee: Steve Northover <snorthov>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 Keywords: usability
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Simon Arsenault CLA 2002-01-23 15:53:53 EST
I do not know if this is a platform behavior or not. This is on build 2002-01-
23.

When using the keyboard Tab key to move around, if it lands on a toolbar whose 
items are all disabled, there is no visual cue that keyboard focus is there.

To see this behavior, open the simple new file wizard making sure you have no 
project selected. This will give you the page to enter a new file name and also 
the project/folder to contain the new file. You'll notice the project/folder 
field is empty and nothing selected in the list box. Type in a name and then 
hit Tab a few times to get to the project/folder field. Now hit tab one more 
time. The keyboard focus is now on the toolbar but there is no visual cue. Tab 
once more, and the first item in the list is selected. Shift-Tab, and notice 
the outline on the only item in the tool bar that is enabled (assuming here the 
project selected in the list has folders).
Comment 1 Tod Creasey CLA 2002-03-06 09:44:59 EST
Usability rather than accessibility issue
Comment 2 Steve Northover CLA 2005-08-10 14:52:24 EDT
Test code:


import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;
import org.eclipse.swt.layout.*;

public class PR_8302 {
public static void main (String [] args) {
	Display display = new Display ();
	Shell shell = new Shell (display);
	shell.setLayout (new RowLayout ());
	new Button (shell, SWT.PUSH).setText ("FRED");
	ToolBar toolBar = new ToolBar (shell, SWT.FLAT);
	for (int i=0; i<4; i++) {
		ToolItem item = new ToolItem (toolBar, SWT.NONE);
		item.setText ("Item " + i);
		item.setEnabled (false);
	}
	shell.pack ();
	shell.open ();
	while (!shell.isDisposed()) {
		if (!display.readAndDispatch ()) display.sleep ();
	}
	display.dispose ();
}
}
Comment 3 Steve Northover CLA 2005-08-10 14:52:53 EDT
This has been fixed for a while.
Comment 4 Billy Biggs CLA 2005-08-10 14:57:02 EDT
Should mark as WORKSFORME since it wasn't fixed for this bug #.
Comment 5 Billy Biggs CLA 2005-08-10 14:57:12 EDT
WFM.