| Summary: | TRAVERSE_TAB_NEXT not working | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Markus Krüger <webmaster> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 1.2 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
TraverseEvents are only implemented to support the requirements of CellEditors. See bug 250611: TraverseEvents for cell editors are missing 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? 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. |
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; } } });