Replace keyChar with keyCode to prevent new line error when debugging

This commit is contained in:
Joel Moniz
2017-01-01 21:02:51 +05:30
parent 8b74491e69
commit c81fc0ac16

View File

@@ -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");