Skip to content

Commit 61d83e6

Browse files
Remove duplicate ctrl+alt+left/right handling
These key combinations were registered as accelerator keystrokes in the tab bar popup menu, but also handled by EditorListener, so they would switch tabs *twice*. Removing the handling from EditorListener helps to fix this. References: arduino#4228
1 parent 37d2ec3 commit 61d83e6

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

app/src/processing/app/EditorListener.java

-9
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,6 @@ public void keyPressed(KeyEvent event) {
5454
sketch.handlePrevCode();
5555
}
5656

57-
// Navigation..
58-
if ((event.getModifiers() & CTRL_ALT) == CTRL_ALT) {
59-
if (code == KeyEvent.VK_LEFT) {
60-
sketch.handlePrevCode();
61-
} else if (code == KeyEvent.VK_RIGHT) {
62-
sketch.handleNextCode();
63-
}
64-
}
65-
6657
// if (event.isAltDown() && code == KeyEvent.VK_T) {
6758
// int line = textarea.getCaretLineNumber();
6859
// textarea.setActiveLineRange(line, line + 3);

0 commit comments

Comments
 (0)