summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
diff options
context:
space:
mode:
authorCarolyn MacLeod <carolyn>2009-05-05 21:13:11 +0000
committerCarolyn MacLeod <carolyn>2009-05-05 21:13:11 +0000
commit6f8274083fdaaf34c09f01aab986c28b33487728 (patch)
treebd8aab5d8d052e60bdc64b92748b604d18063c8b /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
parente847ff3c920a2e7d75e3201980459b86f801b06a (diff)
downloadeclipse.platform.swt-6f8274083fdaaf34c09f01aab986c28b33487728.tar.gz
eclipse.platform.swt-6f8274083fdaaf34c09f01aab986c28b33487728.tar.xz
eclipse.platform.swt-6f8274083fdaaf34c09f01aab986c28b33487728.zip
245278 - [DateTime] ignores User's keyboard input
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
index e5696354a2..ebf1e46b66 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java
@@ -601,12 +601,11 @@ void onMouseClick(Event event) {
if (event.button != 1) return;
Point sel = text.getSelection();
for (int i = 0; i < fieldCount; i++) {
- if (sel.x >= fieldIndices[i].x && sel.x <= fieldIndices[i].y) {
- currentField = i;
+ if (fieldIndices[i].x <= sel.x && sel.x <= fieldIndices[i].y) {
+ selectField(i);
break;
}
}
- selectField(currentField);
}
void onResize(Event event) {