[ 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
This commit is contained in:
teo_sarca 2007-06-11 14:30:43 +00:00
parent 4031932f4c
commit 595f062839
1 changed files with 5 additions and 0 deletions

View File

@ -43,6 +43,11 @@ public class AutoCompletion extends PlainDocument {
}); });
editorKeyListener = new KeyAdapter() { editorKeyListener = new KeyAdapter() {
public void keyPressed(KeyEvent e) { 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); if (comboBox.isDisplayable()) comboBox.setPopupVisible(true);
hitBackspace=false; hitBackspace=false;
switch (e.getKeyCode()) { switch (e.getKeyCode()) {