From 6631ee3334607cc5e0b670191f9df048c157325a Mon Sep 17 00:00:00 2001 From: gmungoc Date: Mon, 24 Oct 2016 14:50:53 +0100 Subject: [PATCH] JAL-2272 Cmd-drag to group edit sequences on Mac (Ctrl-click for popup menu) --- help/html/editing/index.html | 5 ++--- src/jalview/gui/SeqPanel.java | 7 ++++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/help/html/editing/index.html b/help/html/editing/index.html index 471e520..fd8c5a3 100755 --- a/help/html/editing/index.html +++ b/help/html/editing/index.html @@ -49,9 +49,8 @@ right to insert gaps and remove gaps.
If the current selection is a group over all sequences in the alignment, or a group over some sequences or all columns in the alignment, then hold down - either "Control" key (or the "Alt;" on OSX if - "Control" does not work) and drag the residue left or - right to edit all sequences in the defined group at once. + "Control" key ("Cmd" key on OSX) and drag the residue + left or right to edit all sequences in the defined group at once.

Copy/paste/cut/delete - any sequences which are in the diff --git a/src/jalview/gui/SeqPanel.java b/src/jalview/gui/SeqPanel.java index bae80db..3266fab 100644 --- a/src/jalview/gui/SeqPanel.java +++ b/src/jalview/gui/SeqPanel.java @@ -616,13 +616,14 @@ public class SeqPanel extends JPanel implements MouseListener, return; } - if (evt.isShiftDown() || evt.isAltDown() || evt.isControlDown()) + boolean isControlDown = Platform.isControlDown(evt); + if (evt.isShiftDown() || isControlDown) { - if (evt.isAltDown() || evt.isControlDown()) + editingSeqs = true; + if (isControlDown) { groupEditing = true; } - editingSeqs = true; } else { -- 1.7.10.2