This gives back focus to the table after pressing Ctrl+Enter or Esc from
a header row cell editor.
Change-Id: I85fe91739a0b4422de3168dd9ea2fbb197853a6b
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/73953
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
applyHeader();
if ((e.stateMask & SWT.CTRL) != 0) {
applySearchAsFilter();
- } else {
- /*
- * Set focus on the table so that the next
- * carriage return goes to the next result
- */
- TmfEventsTable.this.getTable().setFocus();
}
+ /*
+ * Set focus on the table so that the next
+ * carriage return goes to the next result
+ */
+ TmfEventsTable.this.getTable().setFocus();
} else if (e.character == SWT.ESC) {
tableEditor.getEditor().dispose();
+ TmfEventsTable.this.getTable().setFocus();
}
}
});