Skip to content

Commit 1a8ae26

Browse files
Matthijs Kooijmanlmihalkovic
Matthijs Kooijman
authored andcommitted
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. This was probably added in an attempt to work around the broken accelerator keys on the tab bar popup menus, but in practice this only meant that the shortcut would sometimes (and now that the accelerator keys are fixed, always) switch tabs *twice*. Removing the handling from EditorListener helps to fix this. References: arduino#4228
1 parent f3b62c1 commit 1a8ae26

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

app/src/processing/app/EditorListener.java

Lines changed: 0 additions & 9 deletions
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)