mirror of
https://github.com/processing/processing4.git
synced 2026-02-21 06:15:50 +01:00
PdeKeyListener.java: tab key behaves correctly if !editor.tabs.expand
If the `editor.tabs.expand` preference setting is set to `false` (tabs are *not* expanded to spaces), insert a tab character when the tab key is pressed. Previously nothing would be inserted.
This commit is contained in:
@@ -194,6 +194,9 @@ public class PdeKeyListener {
|
||||
textarea.setSelectedText(spaces(tabSize));
|
||||
event.consume();
|
||||
return true;
|
||||
} else if (!Preferences.getBoolean("editor.tabs.expand")) {
|
||||
textarea.setSelectedText("\t");
|
||||
event.consume();
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user