Bug 234049 - [DateTime] DateTime widget does not allow useful handling of doubleclick
Summary: [DateTime] DateTime widget does not allow useful handling of doubleclick
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-26 19:53 EDT by Chris Lee CLA
Modified: 2021-11-12 11:37 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Lee CLA 2008-05-26 19:53:22 EDT
Build ID: I20080516-1333

Steps To Reproduce:
1. Create a DateTime widget
2. Add a double click mouse listener
3. Try to navigate from month to month using the arrows - doubleclick listener gets fired
4. Try to doubleclick on an actual date on the calendar - doubleclick listener gets fired.


More information:
Directly related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=229181

The issue is that the doubleclick handling is not useful to determine when a user doubleclicks on an actual date, instead of just doubleclicks anywhere on the control. Need some way to differentiate this event, or another place to add the mouse listener so that we can get the *useful* doubleclick events.

Can this be fixed for 3.4 Release? (It's useful for us to know ahead of time so we can decide whether or not we can use this control for what we want.)
Comment 1 Chris Lee CLA 2008-05-26 19:56:00 EDT
Realistically, this is an issue for all the mouse events - there's no way to determine what subpart of the control the event was for.
Comment 2 Carolyn MacLeod CLA 2008-05-26 22:35:23 EDT
This can't be fixed in time for 3.4. Code is almost frozen now, and only critical bug fixes are going in.

By any chance, can you use the Selection or DefaultSelection events instead?
Selection is fired whenever a new date is selected with either the mouse or keyboard. Currently, DefaultSelection is only fired when the user types Enter, however it might make sense (in future releases) to also fire DefaultSelection when the user double-clicks on a date. You would not be able to distinguish between double-click and typing Enter, but I think that would be ok, because it is always desirable from an accessibility point of view to have a keyboard mechanism to fire an event.
Comment 3 Mark Siegel CLA 2008-05-27 12:23:46 EDT
I can't seem to get the default selection event to be fired using the enter button.  Using same build as Chris mentioned above.
Comment 4 Eclipse Webmaster CLA 2019-09-06 16:17:41 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.