Skip to content

Commit d6a10c9

Browse files
Do not trigger Ctrl-Tab handling when pressing Ctrl-Shift-Tab
Previously, the keybinding for Ctrl-Tab didn't check the status of the Shift key, so it would also trigger when pressing Ctrl-Shift-Tab. This resulted in switching tabs forward *and* back, making it look like the switch back was not working. Closes: arduino#195
1 parent 80a1201 commit d6a10c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/processing/app/EditorListener.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ public void keyPressed(KeyEvent event) {
4444
int code = event.getKeyCode();
4545

4646
// Navigation..
47-
if ((event.getModifiers() & CTRL) == CTRL && code == KeyEvent.VK_TAB) {
47+
if ((event.getModifiers() & CTRL_SHIFT) == CTRL && code == KeyEvent.VK_TAB) {
4848
sketch.handleNextCode();
4949
}
5050

5151
// Navigation..
52-
// FIXME: not working on LINUX !!!
5352
if ((event.getModifiers() & CTRL_SHIFT) == CTRL_SHIFT && code == KeyEvent.VK_TAB) {
5453
sketch.handlePrevCode();
5554
}

0 commit comments

Comments
 (0)