IDEMPIERE-4009 Pushing the Enter key on standard search panels don't have any effect

This commit is contained in:
Nicolas Micoud 2019-07-26 21:36:27 +02:00
parent 244718e2cf
commit c370554e30
1 changed files with 3 additions and 0 deletions

View File

@ -1973,6 +1973,9 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
// do nothing when parameter not change and at window mode, or at dialog mode but select non record
onOk();
}
else if (m_infoWindowID == 0 && event.getTarget() instanceof InfoGeneralPanel) {
onUserQuery();
}
}else if (event.getName().equals(Events.ON_CANCEL) || (event.getTarget().equals(this) && event.getName().equals(Events.ON_CLOSE))){
m_cancel = true;
dispose(false);