Bug 270440

Summary: List control draws wrong focus rect when DefaultSelection listener calls setItems(..)
Product: [Eclipse Project] Platform Reporter: Markus Keller <markus.kell.r>
Component: SWTAssignee: Steve Northover <steve_northover>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
modified Snippet59.java none

Description Markus Keller CLA 2009-03-30 08:49:16 EDT
Created attachment 130237 [details]
modified Snippet59.java

I20090325-1135

The List control draws a wrong focus rectangle when the DefaultSelection listener calls setItems(..).

To reproduce, run the attached snippet and then doubleclick a list item (not the first item). Now, the first item also looks like it has the keyboard focus, but it doesn't.

If you create the List with SWT.MULTI, the focus rect completely disappears, but the logical focus actually ends up on the first item, which can be seen if you press Ctrl+ArrowDown.
Comment 1 Eclipse Webmaster CLA 2019-09-06 16:12:06 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.