mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-03 19:57:36 +08:00
Keyboard shortcut action run in not active screen #PL-2709
This commit is contained in:
parent
080b266c28
commit
919d395f1d
@ -413,10 +413,12 @@ public abstract class WebAbstractTable<T extends com.vaadin.ui.Table & CubaEnhan
|
||||
component.addShortcutListener(new ShortcutListener("tableEnter", com.vaadin.event.ShortcutAction.KeyCode.ENTER, null) {
|
||||
@Override
|
||||
public void handleAction(Object sender, Object target) {
|
||||
if (enterPressAction != null) {
|
||||
enterPressAction.actionPerform(WebAbstractTable.this);
|
||||
} else {
|
||||
handleClickAction();
|
||||
if (target == WebAbstractTable.this.component) {
|
||||
if (enterPressAction != null) {
|
||||
enterPressAction.actionPerform(WebAbstractTable.this);
|
||||
} else {
|
||||
handleClickAction();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user