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

Bug 270279

Summary: TRAVERSE_TAB_NEXT not working
Product: [RT] RAP Reporter: Markus Krüger <webmaster>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 1.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Markus Krüger CLA 2009-03-27 11:06:24 EDT
I would like i.e. to catch if the user presses ENTER in a text field and then jump to the next widget (kind of faking the pressing of the tab key).

The following does not work in RAP but in RCP:

txtNachname.addTraverseListener(new TraverseListener() {
  public void keyTraversed(TraverseEvent e) {
    if (e.detail == SWT.TRAVERSE_RETURN) {
      e.doit = true;
      e.detail = SWT.TRAVERSE_TAB_NEXT;
    }
  }
});
Comment 1 Rüdiger Herrmann CLA 2009-04-06 06:06:49 EDT
TraverseEvents are only implemented to support the requirements of CellEditors. See bug 250611: TraverseEvents for cell editors are missing
Comment 2 Markus Krüger CLA 2009-04-06 06:12:26 EDT
Well, how is it than possible to jump to the next edit field (text, combo, radio) on an event if the next field is not know?
Comment 3 Rüdiger Herrmann CLA 2009-04-06 09:51:23 EDT
Changing TRAVERSE_RETURN into TRAVERSE_TAB_NEXT is what is not supported.
For details on how cell navigation works, please have a look at the JFace cell editor code.