mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 17:40:48 +01:00
lol, I'd really done this
This commit is contained in:
@@ -179,13 +179,15 @@ public class TextArea extends JEditTextArea {
|
||||
}
|
||||
super.processKeyEvent(evt);
|
||||
|
||||
if (evt.getID() == KeyEvent.KEY_TYPED && editor.errorCheckerService.getASTGenerator().predictionsEnabled.get()) {
|
||||
if (evt.getID() == KeyEvent.KEY_TYPED) {
|
||||
final KeyEvent evt2 = evt;
|
||||
SwingWorker worker = new SwingWorker() {
|
||||
protected Object doInBackground() throws Exception {
|
||||
errorCheckerService.runManualErrorCheck();
|
||||
log(" Typing: " + fetchPhrase(evt2) + " "
|
||||
+ (evt2.getKeyChar() == KeyEvent.VK_ENTER));
|
||||
// Provide completions only if it's enabled
|
||||
if(editor.errorCheckerService.getASTGenerator().predictionsEnabled.get())
|
||||
log(" Typing: " + fetchPhrase(evt2) + " "
|
||||
+ (evt2.getKeyChar() == KeyEvent.VK_ENTER));
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user