From 792eb8c3689a3b4c4ee72ee177c28aaf6c0c4acc Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 12 Nov 2014 18:57:40 -0500 Subject: [PATCH] IDEMPIERE-2311 bad behavior of info window when after select a record and push enter key / IDEMPIERE-2112 --- .../WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java index 5143bfbae3..5676622df4 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/InfoPanel.java @@ -1390,7 +1390,7 @@ public abstract class InfoPanel extends Window implements EventListener, } 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();