Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361052 - Focused cell is not highlighted if navigating with CTRL + Arrow Up/Down
Summary: Focused cell is not highlighted if navigating with CTRL + Arrow Up/Down
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: JFace (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.5 M3   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-15 09:35 EDT by Ivan Furnadjiev CLA
Modified: 2011-10-17 06:49 EDT (History)
0 users

See Also:


Attachments
Proposed patch (3.23 KB, patch)
2011-10-17 04:15 EDT, Ivan Furnadjiev CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Furnadjiev CLA 2011-10-15 09:35:29 EDT
Reproducible with Controls Demo -> TableViewer Tab:
1. Activate the cell editors.
2. Select a table cell and try to navigate with CTRL + Arrow Up/Down - focused (highlighted) cell is not changed.
The reason for this behavior is the overrided method getFocusCell in TableViewerFocusCellManager, which set the focused cell back to the selected item. Commenting TableViewerFocusCellManager#getFocusCell solves the problem in IE, Chrome and Safari. In Firefox even with this fix, focus cell navigation does not work - see AsyncKeyEventUtil#_isUntrustedKey (all key combinations with CTRL key pressed are treated as untrusted and key event is not sent to the server).
Comment 1 Ivan Furnadjiev CLA 2011-10-17 04:15:31 EDT
Created attachment 205300 [details]
Proposed patch
Comment 2 Ivan Furnadjiev CLA 2011-10-17 06:49:52 EDT
Applied patch to CVS HEAD and Tree_Table_Merge branch.