Skip to content

Commit 39f48c8

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 e3f39a2 commit 39f48c8

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
@@ -45,15 +45,6 @@ public void keyPressed(KeyEvent event) {
4545
editor.selectPrevTab();
4646
}
4747

48-
// Navigation..
49-
if ((event.getModifiers() & CTRL_ALT) == CTRL_ALT) {
50-
if (code == KeyEvent.VK_LEFT) {
51-
editor.selectPrevTab();
52-
} else if (code == KeyEvent.VK_RIGHT) {
53-
editor.selectNextTab();
54-
}
55-
}
56-
5748
// if (event.isAltDown() && code == KeyEvent.VK_T) {
5849
// int line = textarea.getCaretLineNumber();
5950
// textarea.setActiveLineRange(line, line + 3);

0 commit comments

Comments
 (0)