diff options
author | Felipe Heidrich <fheidric> | 2009-10-23 19:37:07 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2009-10-23 19:37:07 +0000 |
commit | 3c583b230fbcccc2783c71ce9fd0e1a3f475cab4 (patch) | |
tree | 14e149451ef607818a2417e1f805388856704493 /bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/DateTime.java | |
parent | ad2f7a3dbde5efa498f9080cce5bfb2b90785d8d (diff) | |
download | eclipse.platform.swt-3c583b230fbcccc2783c71ce9fd0e1a3f475cab4.tar.gz eclipse.platform.swt-3c583b230fbcccc2783c71ce9fd0e1a3f475cab4.tar.xz eclipse.platform.swt-3c583b230fbcccc2783c71ce9fd0e1a3f475cab4.zip |
Bug 65679 - SelectionEvent.stateMask remains 0 even Ctrl (Shift, Alt) were pressed during push operation on button
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 | 8 |
1 files changed, 4 insertions, 4 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 e2a35e8cde..e69a9985f5 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 @@ -489,7 +489,7 @@ int /*long*/ gtk_day_selected (int /*long*/ widget) { } int /*long*/ gtk_day_selected_double_click (int /*long*/ widget) { - postEvent(SWT.DefaultSelection); + sendSelectionEvent (SWT.DefaultSelection); return 0; } @@ -580,7 +580,7 @@ void onKeyDown(Event event) { setTextField(fieldName, calendar.getActualMaximum(fieldName), true, true); break; case SWT.CR: - postEvent(SWT.DefaultSelection); + sendSelectionEvent (SWT.DefaultSelection); break; default: switch (event.character) { @@ -745,7 +745,7 @@ void sendSelectionEvent () { year = y[0]; month = m[0]; day = d[0]; - postEvent (SWT.Selection); + sendSelectionEvent (SWT.Selection); } } @@ -809,7 +809,7 @@ void setField(int fieldName, int value) { calendar.roll(Calendar.HOUR_OF_DAY, 12); // TODO: needs more work for setFormat and locale } calendar.set(fieldName, value); - postEvent(SWT.Selection); + sendSelectionEvent (SWT.Selection); } void setTextField(int fieldName, int value, boolean commit, boolean adjust) { |