commit | 8daed126f898e4628b2b8cdb7e95a08bb118ccf3 | [log] [tgz] |
---|---|---|
author | Duong Nguyen <dnguyen> | Tue Jan 22 00:21:10 2008 +0000 |
committer | Duong Nguyen <dnguyen> | Tue Jan 22 00:21:10 2008 +0000 |
tree | bc45f820760d6d41d2ca6259915a8920dc46ed65 | |
parent | acc62b326d1140d967beb6d3d48edc7a117d7239 [diff] |
Bug 205351 - [CCombo] Adding a KeyListener changes expected traversal behavior - we should only set focus on the text if the user didn't press on the arrow button
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CCombo.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CCombo.java index 8b3e6d9..3129b18 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CCombo.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/CCombo.java
@@ -348,6 +348,8 @@ arrow = null; break; case SWT.FocusIn: + Control focusControl = getDisplay ().getFocusControl (); + if (focusControl == arrow || focusControl == list) return; text.setFocus(); break; case SWT.Move: