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-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7bc614d58ff3f44d5a04e0fc9e63ad4a48eb1ade;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 a9ff222..302a627 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -563,7 +563,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; @@ -574,9 +575,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: