I have an application which needs to be capable of processing the Enter Key as the Tab Key. Intercepting the Enter Key is straight forward enough. In the onItemKeyPress event, I want to pass the event on as if the Tab key was pressed.
theForm.addItemKeyPressHandler(new ItemKeyPressHandler() {
public void onItemKeyPress(ItemKeyPressEvent event) {
if (event.getKeyName().equalsIgnoreCase("enter")) {
... pass on event with Tab key pressed event ...
}
}
});