mirror of
https://github.com/processing/processing4.git
synced 2026-01-28 19:01:08 +01:00
Replace keyChar with keyCode to prevent new line error when debugging
This commit is contained in:
@@ -164,7 +164,7 @@ public class JavaInputHandler extends PdeInputHandler {
|
||||
event.consume();
|
||||
}
|
||||
|
||||
} else if (c == 10 || c == 13) { // auto-indent
|
||||
} else if (code == 10 || code == 13) { // auto-indent
|
||||
if (Preferences.getBoolean("editor.indent")) {
|
||||
char contents[] = textarea.getText().toCharArray();
|
||||
int tabSize = Preferences.getInteger("editor.tabs.size");
|
||||
|
||||
Reference in New Issue
Block a user