Community
Participate
Working Groups
Build Identifier: SWT3.6.1 run my sample, select one row, and click column to sort, you will see the highlight row and focus row on different line Reproducible: Always Steps to Reproduce: 1. run my sample TableSample 2. select the second line 3. click the last name column to sort Bug: the highlight row and focus row on different line
Created attachment 187076 [details] sample code
Created attachment 187077 [details] screen shot
This defect is an accessibility compliance issue for our product. Is there any information regarding this behavior?
Felipe, please investigate this problem.
this is not a SWT Bug. By default a TableViewer calls table#select() to restore the selection. This call only sets the selection but does not set the focus item. Note that the selection and the focus item are not always the same item. You can change the focus item by holding the control key down and moving the focus using the up and down arrow key. All you have to do is, in the selection listerner for the columns, call viewer.refresh(true, true) instead of just viewer.refresh().