(CaretEvent e)
| 289 | textarea.addCaretListener(new CaretListener() { |
| 290 | String lastText = textarea.getText(); |
| 291 | public void caretUpdate(CaretEvent e) { |
| 292 | String newText = textarea.getText(); |
| 293 | if (lastText.equals(newText) && isDirectEdit() && !textarea.isOverwriteEnabled()) { |
| 294 | endTextEditHistory(); |
| 295 | } |
| 296 | lastText = newText; |
| 297 | } |
| 298 | }); |
| 299 | |
| 300 | textarea.addKeyListener(toolbar); |
no test coverage detected