I've created a dialog class filling some common widgets, like text, combo, and tree. It annoys to have the default behavior to dismiss this dialog (same as the default 'OK' button is pressed) when enter/return is pressed whichever widget I was in.
To prevent this behavior, I have to add a traverse listener for each widget to filter the traverse key:
if (SWT::TRAVERSE_RETURN == event.detail) {
event.doit = false
}
This is somewhat annoying. Is there a way to globally do in the dialog level?