Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338179 - Different combo box behavior between swt-windows and swt-carbon
Summary: Different combo box behavior between swt-windows and swt-carbon
Status: CLOSED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.5.2   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-25 02:20 EST by Fan Peng CLA
Modified: 2012-07-18 04:01 EDT (History)
5 users (show)

See Also:


Attachments
Plugin to reproduce the issue. (6.94 KB, application/octet-stream)
2011-02-25 02:25 EST, Fan Peng CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.