From a0b1393114a244fb6dfcbacc802f8b38490d7573 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Sat, 28 Apr 2007 15:18:18 +0000 Subject: [PATCH] BF [ 1709292 ] Find dialog: custom text fields should respond to enter http://sourceforge.net/tracker/index.php?func=detail&aid=1709292&group_id=176962&atid=879332 --- client/src/org/compiere/apps/search/Find.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client/src/org/compiere/apps/search/Find.java b/client/src/org/compiere/apps/search/Find.java index c0a57e36f5..90b0d1da12 100644 --- a/client/src/org/compiere/apps/search/Find.java +++ b/client/src/org/compiere/apps/search/Find.java @@ -393,6 +393,10 @@ public final class Find extends CDialog editor.setMandatory(false); editor.setReadWrite(true); } + // Add action listener to custom text fields - teo_sarca [ 1709292 ] + if (editor instanceof CTextField) { + ((CTextField)editor).addActionListener(this); + } CLabel label = VEditorFactory.getLabel(mField); // if (displayLength > 0) // set it back @@ -486,6 +490,11 @@ public final class Find extends CDialog } m_pstmt = null; + // Remove action listener from custom fields - teo_sarca [ 1709292 ] + for (VEditor editor : m_sEditors) { + if (editor instanceof CTextField) + ((CTextField)editor).removeActionListener(this); + } // TargetFields if (m_targetFields != null) m_targetFields.clear();