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

Bug 338179

Summary: Different combo box behavior between swt-windows and swt-carbon
Product: [Eclipse Project] Platform Reporter: Fan Peng <pfancdl>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: kleind, lshanmug, mukund, peina, pfancdl
Version: 3.5.2   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Plugin to reproduce the issue. none

Description Fan Peng CLA 2011-02-25 02:20:37 EST
Build Identifier: Eclipse 3.5.2 carbon   20100218-1602

Create an combo box, add an SelectionListener.
On Windows, once the drop down list has been opened, press Enter key selects the item in the list first, press Enter again then triggered the SelectionListener.widgetDefaultSelected method.    On Mac, the first Enter is the equivalent of selection and then triggered the SelectionListener.widgetDefaultSelected method.

Reproducible: Always

Steps to Reproduce:
Create an combo box, add an SelectionListener.
On Windows, once the drop down list has been opened, press Enter key selects the item in the list first, press Enter again then triggered the SelectionListener.widgetDefaultSelected method.    On Mac, the first Enter is the equivalent of selection and then triggered the SelectionListener.widgetDefaultSelected method.
Comment 1 Fan Peng CLA 2011-02-25 02:25:01 EST
Created attachment 189773 [details]
Plugin to reproduce the issue.
Comment 2 Fan Peng CLA 2011-02-25 02:28:58 EST
Run the attachment plugin in eclipse.
Open the combo drop down list first.Move arrow key to select the list item.
Then press the Enter key to select the item.
On windows, once the drop down list has been opened, press Enter key selects
the item in the list first, press Enter again then triggered the
SelectionListener.widgetDefaultSelected method.    On MAC(SWT-carbon), the first Enter is the equivalent of selection and then triggered the
SelectionListener.widgetDefaultSelected method. But the eclipse 3.5.2 cocoa has no problem.We hope the SWT-carbon has the same behavior with windows and SWT-cocoa.
Comment 3 mukundan desikan CLA 2011-03-10 12:35:22 EST
This issue can be reproduced with the SWT 3.6.2.
Comment 4 Lakshmi P Shanmugam CLA 2012-07-18 04:01:34 EDT
Closing report, platform is discontinued.