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

Bug 336054

Summary: Combo eats text on Enter
Product: [Eclipse Project] Platform Reporter: Markus Keller <markus.kell.r>
Component: SWTAssignee: Niraj Modi <niraj.modi>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gheorghe, lshanmug, niraj.modi, Silenio_Quarti
Version: 3.7   
Target Milestone: 4.4 M3   
Hardware: PC   
OS: Windows All   
Whiteboard:
Attachments:
Description Flags
This patch fixes the Bug 336054 - Combo eats text on Enter none

Description Markus Keller CLA 2011-02-02 06:21:44 EST
I20110201-0800, same on WinXP and Win 7

- Control Example > Combo
- click the Combo's dropdown arrow
- type ABC
- press Enter key
=> the text I just entered is eaten (text field is cleared)
=> expected: text stays, but drop-down is closed

This only seems to happen if at the time the drop-down is opened, the text field contains an entry from the combo list.

Happened to me in the File Search dialog in the "File name patterns" field.
Comment 1 Niraj Modi CLA 2013-09-26 07:35:09 EDT
Created attachment 235842 [details]
This patch fixes the Bug 336054 - Combo eats text on Enter

Hi Silenio/Bogdan,
Potential Patch: For your review.
Comment 2 Bogdan Gheorghe CLA 2013-10-08 14:42:43 EDT
Patch was good Niraj. Just one small change was needed: added a check to only do the work if it is not a READONLY combo. 

Patch released to master.

http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=3d7660d12b57efbf49e0dce8bf932fcbbf327686