From 7bc614d58ff3f44d5a04e0fc9e63ad4a48eb1ade Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Sat, 4 Jul 2020 13:45:52 +0100 Subject: [PATCH] =?utf8?q?JAL-3638=20don=E2=80=99t=20move=20cursor=20to=20ne?= =?utf8?q?xt=20gap=20after=20moving=20selection=20up=20and=20down=20with=20s?= =?utf8?q?hift+Alt+up/down?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/jalview/gui/AlignFrame.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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: -- 1.7.10.2