IDEMPIERE-5211 Restore field focus after opening of dialog or navigate to other tab (#1214)
- Fix for cancelling of Report and Record Access dialog
This commit is contained in:
parent
b6ce1e7cbe
commit
10d4399b0d
|
|
@ -990,6 +990,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
||||||
@Override
|
@Override
|
||||||
public void onEvent(Event event) throws Exception {
|
public void onEvent(Event event) throws Exception {
|
||||||
toolbar.lock(adTabbox.getSelectedGridTab().isLocked());
|
toolbar.lock(adTabbox.getSelectedGridTab().isLocked());
|
||||||
|
focusToLastFocusEditor();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -2891,6 +2892,8 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
||||||
public void onCallback(Boolean result) {
|
public void onCallback(Boolean result) {
|
||||||
if (result) {
|
if (result) {
|
||||||
onReport0();
|
onReport0();
|
||||||
|
} else {
|
||||||
|
focusToLastFocusEditor();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,7 @@ public class ReportAction implements EventListener<Event>
|
||||||
winReport.setBorder("normal");
|
winReport.setBorder("normal");
|
||||||
winReport.setStyle("position:absolute");
|
winReport.setStyle("position:absolute");
|
||||||
winReport.addEventListener("onValidate", this);
|
winReport.addEventListener("onValidate", this);
|
||||||
|
winReport.addCallback(Window.AFTER_PAGE_DETACHED, t -> panel.focusToLastFocusEditor());
|
||||||
|
|
||||||
cboPrintFormat.setMold("select");
|
cboPrintFormat.setMold("select");
|
||||||
cboPrintFormat.getItems().clear();
|
cboPrintFormat.getItems().clear();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue