We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1b049c commit fea6016Copy full SHA for fea6016
1 file changed
app/src/processing/mode/java/PdeKeyListener.java
@@ -304,9 +304,11 @@ public boolean keyPressed(KeyEvent event) {
304
//textarea.setSelectionStart(origIndex + 1);
305
textarea.setSelectionEnd(textarea.getSelectionStop() - spaceCount);
306
textarea.setSelectedText("\n");
307
+ textarea.setCaretPosition(textarea.getCaretPosition() + extraCount + spaceCount);
308
} else {
309
String insertion = "\n" + spaces(spaceCount);
310
textarea.setSelectedText(insertion);
311
+ textarea.setCaretPosition(textarea.getCaretPosition() + extraCount);
312
}
313
314
// not gonna bother handling more than one brace
0 commit comments