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

Bug 425855

Summary: [Grid] Keyboard navigation not possible if no item is selected
Product: [RT] RAP Reporter: Claudio Guglielmo <claudio.guglielmo>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.2   
Target Milestone: 2.3 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
swt screenshot none

Description Claudio Guglielmo CLA 2014-01-16 05:04:00 EST
If the user navigates to a table or tree by pressing tab, he won't be able to select any item by keyboard if no item is selected yet. If there is already an item selected it works fine.
Comment 1 Claudio Guglielmo CLA 2014-01-16 05:12:54 EST
We fixed this on our fork as follows: https://github.com/BSI-Business-Systems-Integration-AG/rap/commit/e94220c1eb726f7144b94c19ec67d63a36b5e5bf
Comment 2 Ivan Furnadjiev CLA 2014-01-16 08:14:32 EST
Actually, this is the same behavior as in SWT. You need the focus item to be set (by click on the table or Table#setSelection call) in order to use the keyboard navigation.
Comment 3 Claudio Guglielmo CLA 2014-01-16 08:26:26 EST
Created attachment 239061 [details]
swt screenshot
Comment 4 Claudio Guglielmo CLA 2014-01-16 08:27:16 EST
With swt it works fine. As soon as the table gets the focus, a focus indicator is drawn on the first element in the table. If I then press arrowDown, the second element gets selected, see screenshot.

With rap it does not, see here: http://rap.eclipsesource.com/controlsdemo/controls#TableViewer
Comment 5 Ivan Furnadjiev CLA 2014-02-28 09:31:55 EST
Fixed in master with change https://git.eclipse.org/r/22661.