Project: SWT
Bug 370355 Combo does not show focus ring in some cases
Reported: 2012-02-01 12:16:20 | Status: verified fixed

steps to reproduce the problem on Eclipse: "when hovering over a Java problem, you can enrich the hover and then click on the 'Configure Problem Severity' icon. This opens the preference page and sets the focus on the correct preference" The focus control is not decorated with focus ring, even when the ALT key is pressed. Thus, it can't be identified in the UI. Here is snippet that shows the same problem: public class Snippet { public static void main(final String[] args) { final Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new RowLayout()); Label label = new Label(shell, SWT.SINGLE); label.setText("text:"); final Combo combo = new Combo(shell, SWT.DROP_DOWN | SWT.READ_ONLY); combo.setItems(new String[] {"hello", "hi"}); combo.select(0); Button button = new Button(shell, SWT.PUSH); button.setText("button"); display.addFilter(SWT.KeyDown, new Listener() { public void handleEvent(Event event) { if (event.keyCode == SWT.F1) { combo.redraw(); System.out.println("redrawing"); } } }); shell.setSize(200, 200); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); } }

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Combo.java