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

Bug 487072

Summary: Allow giving keyboard focus to the Eclipse UI via CTRL + TAB.
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF MVCAssignee: gef-inbox <gef-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.2.0   
Target Milestone: 4.0.0 (Neon) M6   
Hardware: All   
OS: All   
Whiteboard:

Description Matthias Wienand CLA 2016-02-03 04:11:52 EST
When an Eclipse ViewPart (or EditorPart) has keyboard focus, pressing CTRL + TAB should assign keyboard focus to the next control within the Eclipse UI. A TraverseEvent is send to the control that currently has keyboard focus, i.e. the FXCanvas in the case of a GEF4 application. Currently, this event is not handled by the FXCanvas.
Comment 1 Matthias Wienand CLA 2016-02-03 04:52:34 EST
I implemented giving keyboard focus to the next control in the Eclipse UI by registering a TraverseListener on the FXCanvas that sets the event's "doit" flag to true if the CTRL modifier key is pressed (i.e. the bit is set in the event's "stateMask" field) and the event's "detail" field indicates that tab traversal was performed. The code is published on the master branch. Therefore, I resolve this ticket as fixed for 4.0.0M6.