I have a Panel that implements Handler and a TextField and ComboBox in it.
static final Action MY_ACTION = new ShortcutAction("myAction", ShortcutAction.KeyCode.ENTER, null);
Action[] actions = new Action[]
{MY_ACTION};
and methods
public Action[] getActions(Object target, Object sender) {
return actions;
}
public void handleAction(Action action, Object sender, Object target) {
System.out.println(target.getClass().getName());
}
when i press ENTER while TextField has focus, i have output: com.vaadin.ui.TextField,
but if ComboBox has focus, target is null.
So, is there a way to find out what ComboBox keyboard action occured in?