Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333963 - [Combo] Selection in drop-down list changes on hover
Summary: [Combo] Selection in drop-down list changes on hover
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.4 M5   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-11 07:14 EST by Ralf Sternberg CLA
Modified: 2011-01-20 11:43 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Sternberg CLA 2011-01-11 07:14:37 EST
Reproduce:
* Open the drop-down list on a Combo box
* Note that the selection changes when hovering over the list
* The Combo box selection (i.e. the string displayed in the text field) does not change
* As an effect, the Combo text-field and the list may have different selections

Expected:
* The drop-down list should have the same hover effect as List
* List elements should be selected by click or keyboard
* The Combo-selection and the selected list element should be synchronized
Comment 1 Ivan Furnadjiev CLA 2011-01-17 07:48:51 EST
If I remember correctly, this was done to respect the Windows combo behavior. I've just checked it with SWT Controls Demo under Windows and RAP Combo behaves exactly the same like in SWT - on mouse over the combo list selection changes.
Comment 2 Ralf Sternberg CLA 2011-01-17 15:49:52 EST
On Windows, does the selection stay when the mouse cursor leaves the drop-down list?
Comment 3 Ivan Furnadjiev CLA 2011-01-17 16:03:21 EST
Yes... it stays. And if you press Enter key, the hovered (selected) item text is shown into the text field (selection from the list is applied to the text field).
Comment 4 Ralf Sternberg CLA 2011-01-17 17:20:50 EST
Ok, I see. On GTK, the selection also works like a hover effect. On mouse out, the drop-down list is deselected. So I guess, the hover effect may make sense. But what really puzzles me is this behavior:

* Open the drop-down list
* Hover over some item
* Leave the drop-down list and click somewhere outside of it (drop-down closes)
* Open the drop-down list again and find the item previously hovered still selected
Comment 5 Ivan Furnadjiev CLA 2011-01-18 02:07:52 EST
Yes... your are right. On Windows when you open the drop-down list the initial selection is *always* on the current combo selection. In RAP it's not.
Comment 6 Ivan Furnadjiev CLA 2011-01-20 11:43:58 EST
The issue from comment #4 is fixed in CVS HEAD.