Skip to content

Commit

Permalink
Remove duplicate ctrl+alt+left/right handling
Browse files Browse the repository at this point in the history
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
  • Loading branch information
matthijskooijman committed Dec 9, 2015
1 parent e3f39a2 commit 39f48c8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions app/src/processing/app/EditorListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@ public void keyPressed(KeyEvent event) {
editor.selectPrevTab();
}

// Navigation..
if ((event.getModifiers() & CTRL_ALT) == CTRL_ALT) {
if (code == KeyEvent.VK_LEFT) {
editor.selectPrevTab();
} else if (code == KeyEvent.VK_RIGHT) {
editor.selectNextTab();
}
}

// if (event.isAltDown() && code == KeyEvent.VK_T) {
// int line = textarea.getCaretLineNumber();
// textarea.setActiveLineRange(line, line + 3);
Expand Down

0 comments on commit 39f48c8

Please sign in to comment.