Project: SWT
Bug 80160 Regression: Pressing Return/Esc does not close drop down list of editable combo
Reported: 2004-12-03 14:50:22 | Status: resolved fixed

When the drop down list of an editable combo box is open, pressing Return or Esc will not close it in v3114. It used to in v3111 and earlier. --- import org.eclipse.swt.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; public class ComboTest { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.setLayout(new GridLayout()); Combo cmb = new Combo(shell, SWT.NONE); cmb.setText("Sample Text"); for (int idx = 0; idx < 10; idx++) { cmb.add("" + idx); } shell.setSize(200, 150); 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