From: Jim Procter Date: Sat, 4 Jul 2020 12:45:52 +0000 (+0100) Subject: JAL-3638 don’t move cursor to next gap after moving selection up and down with shift... X-Git-Tag: Release_2_11_1_1~22^2~20 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c43bf66142660933dbe5b62c8d1a9e18eb75e439;p=jalview.git JAL-3638 don’t move cursor to next gap after moving selection up and down with shift+Alt+up/down --- diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 61a6af6..d03b2c7 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -536,7 +536,8 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, } if (viewport.cursorMode) { - alignPanel.getSeqPanel().moveCursor(0, 1, evt.isShiftDown()); + alignPanel.getSeqPanel().moveCursor(0, 1, + evt.isShiftDown() && !evt.isAltDown()); } break; @@ -547,9 +548,9 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, } if (viewport.cursorMode) { - alignPanel.getSeqPanel().moveCursor(0, -1,evt.isShiftDown()); + alignPanel.getSeqPanel().moveCursor(0, -1, + evt.isShiftDown() && !evt.isAltDown()); } - break; case KeyEvent.VK_LEFT: