Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333963

Summary: [Combo] Selection in drop-down list changes on hover
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.4   
Target Milestone: 1.4 M5   
Hardware: All   
OS: All   
Whiteboard:

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.