Skip to content

Commit c95d558

Browse files
Do not prevent tab-switching when external editor is used
EditorListener, the class responsible for handling key shortcuts for switching between tabs, only worked if the text area was editable. It seems this was still a remnant from when EditorListener handled a lot of other keystrokes too that modified the actual text (like indenting). Now, this limitation does not make sense, so just remove it.
1 parent d6a10c9 commit c95d558

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

app/src/processing/app/EditorListener.java

-7
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import java.awt.event.KeyEvent;
66
import java.awt.event.KeyListener;
77

8-
import processing.app.syntax.SketchTextArea;
9-
108
public class EditorListener implements KeyListener {
119

1210
private Editor editor;
@@ -34,11 +32,6 @@ public void keyTyped(KeyEvent event) {
3432

3533
@Override
3634
public void keyPressed(KeyEvent event) {
37-
38-
SketchTextArea textarea = editor.getTextArea();
39-
40-
if (!textarea.isEditable()) return;
41-
4235
Sketch sketch = editor.getSketch();
4336

4437
int code = event.getKeyCode();

0 commit comments

Comments
 (0)