Project: SWT
Bug 119109 KeyEvent.doit does not work for a CCombo
Reported: 2005-12-02 15:44:34 | Status: resolved fixed

I want to perform an action for a specific key sequence (Ctrl+Space). I do not want the space character to appear in the CCombo. Using the following code in a KeyListener does not work: public void keyPressed(KeyEvent event) { if (event.stateMask == SWT.CTRL && event.keyCode == ' ') { event.doit = false; // rest of code... } } It does however work as expected for Combo, Text and StyledText.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CCombo.java