From 595f062839fa13101ccee6894e669aee0fd2ae80 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Mon, 11 Jun 2007 14:30:43 +0000 Subject: [PATCH] [ 1735043 ] AutoCompletion: drop down box is showed even if i press Caps http://sourceforge.net/tracker/index.php?func=detail&aid=1735043&group_id=176962&atid=879332 --- client/src/org/compiere/grid/ed/AutoCompletion.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/org/compiere/grid/ed/AutoCompletion.java b/client/src/org/compiere/grid/ed/AutoCompletion.java index d66210c723..0e42b47f2e 100644 --- a/client/src/org/compiere/grid/ed/AutoCompletion.java +++ b/client/src/org/compiere/grid/ed/AutoCompletion.java @@ -43,6 +43,11 @@ public class AutoCompletion extends PlainDocument { }); editorKeyListener = new KeyAdapter() { public void keyPressed(KeyEvent e) { + // Ignore keys that do not alter the text - teo_sarca [ 1735043 ] + if (e.getKeyChar() == KeyEvent.CHAR_UNDEFINED) { + return; + } + if (comboBox.isDisplayable()) comboBox.setPopupVisible(true); hitBackspace=false; switch (e.getKeyCode()) {