(KeyEvent event)
| 275 | |
| 276 | // Grab ESC with keyPressed, because it's not making it to keyTyped |
| 277 | public void keyPressed(KeyEvent event) { |
| 278 | if (event.getKeyChar() == KeyEvent.VK_ESCAPE) { |
| 279 | unedit(); |
| 280 | event.consume(); |
| 281 | } |
| 282 | } |
| 283 | |
| 284 | // use keyTyped to catch when the feller is actually |
| 285 | // added to the text field. with keyTyped, as opposed to |