IDEMPIERE-2311 bad behavior of info window when after select a record and push enter key / IDEMPIERE-2112

This commit is contained in:
Carlos Ruiz 2014-11-12 18:57:40 -05:00
parent ab37dd1258
commit 792eb8c368
1 changed files with 1 additions and 1 deletions

View File

@ -1390,7 +1390,7 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
} else if (keyEvent.getKeyCode() == VK_ENTER) { // Enter
// enter in contentpanel to select
//when user push enter keyboard at input parameter field
if (contentPanel.getSelectedIndex() >= 0) {
if (m_lookup && contentPanel.getSelectedIndex() >= 0) {
onOk();
} else {
onUserQuery();