diff options
author | Carolyn MacLeod <carolyn> | 2009-05-05 21:13:11 +0000 |
---|---|---|
committer | Carolyn MacLeod <carolyn> | 2009-05-05 21:13:11 +0000 |
commit | 6f8274083fdaaf34c09f01aab986c28b33487728 (patch) | |
tree | bd8aab5d8d052e60bdc64b92748b604d18063c8b /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java | |
parent | e847ff3c920a2e7d75e3201980459b86f801b06a (diff) | |
download | eclipse.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.java | 5 |
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) { |