BF [ 1820778 ] ESC(cancel editing) key not working if you are on VComboBox
* added some @Override annotations
This commit is contained in:
parent
3486276cbd
commit
678a9117ff
|
@ -49,6 +49,10 @@ public class AutoCompletion extends PlainDocument {
|
||||||
if (e.getKeyChar() == KeyEvent.CHAR_UNDEFINED) {
|
if (e.getKeyChar() == KeyEvent.CHAR_UNDEFINED) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
// Ignore ESC key - teo_sarca BF [ 1820778 ]
|
||||||
|
if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (comboBox.isDisplayable()) comboBox.setPopupVisible(true);
|
if (comboBox.isDisplayable()) comboBox.setPopupVisible(true);
|
||||||
hitBackspace=false;
|
hitBackspace=false;
|
||||||
|
@ -104,6 +108,7 @@ public class AutoCompletion extends PlainDocument {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void remove(int offs, int len) throws BadLocationException {
|
public void remove(int offs, int len) throws BadLocationException {
|
||||||
// return immediately when selecting an item
|
// return immediately when selecting an item
|
||||||
if (selecting) return;
|
if (selecting) return;
|
||||||
|
@ -122,6 +127,7 @@ public class AutoCompletion extends PlainDocument {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void insertString(int offs, String str, AttributeSet a) throws BadLocationException {
|
public void insertString(int offs, String str, AttributeSet a) throws BadLocationException {
|
||||||
|
|
||||||
if (selecting) return;
|
if (selecting) return;
|
||||||
|
|
Loading…
Reference in New Issue