I try to add shortcut on enter for two text fields on one screen, but always first is called:
tf1.addShortcutListener(new ShortcutListener("enter", com.vaadin.event.ShortcutAction.KeyCode.ENTER, null) {
@Override
public void handleAction(Object sender, Object target) {
}
});
tf2.addShortcutListener(new ShortcutListener("enter", com.vaadin.event.ShortcutAction.KeyCode.ENTER, null) {
@Override
public void handleAction(Object sender, Object target) {
}
});