Community
Participate
Working Groups
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).
Usability rather than accessibility issue
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 (); } }
This has been fixed for a while.
Should mark as WORKSFORME since it wasn't fixed for this bug #.
WFM.