\r
public void mouseDragged(MouseEvent evt)\r
{\r
- if(av.groupDefiningMode)\r
- doMouseDraggedDefineMode(evt);\r
- else\r
+ if(evt.isShiftDown() || evt.isControlDown())\r
doMouseDragged(evt);\r
+ else\r
+ doMouseDraggedDefineMode(evt);\r
}\r
});\r
\r
{\r
public void mouseReleased(MouseEvent evt)\r
{\r
- if(av.groupDefiningMode)\r
- doMouseReleasedDefineMode(evt);\r
- else\r
+ if(evt.isShiftDown() || evt.isControlDown())\r
doMouseReleased(evt);\r
+ else\r
+ doMouseReleasedDefineMode(evt);\r
}\r
public void mousePressed(MouseEvent evt)\r
{\r
- if(av.groupDefiningMode)\r
- doMousePressedDefineMode(evt);\r
- else\r
+ if(evt.isShiftDown() || evt.isControlDown())\r
doMousePressed(evt);\r
+ else\r
+ doMousePressedDefineMode(evt);\r
}\r
\r
});\r
\r
public void doMouseDragged(MouseEvent evt) {\r
// If we're dragging we're editing\r
+\r
editFlag = true;\r
int x = evt.getX();\r
\r
if (startseq != -1) {\r
\r
// Group editing\r
- if (av.getGroupEdit()) {\r
+ if (evt.isControlDown()) {\r
SequenceGroup sg = av.getAlignment().findGroup(startseq);\r
\r
if(sg!=null)\r
}\r
else if( javax.swing.SwingUtilities.isRightMouseButton(evt))\r
{\r
- jalview.gui.PopupMenu pop = new jalview.gui.PopupMenu( av , this);\r
+ jalview.gui.PopupMenu pop = new jalview.gui.PopupMenu( parent , null);\r
pop.show(this, evt.getX(), evt.getY());\r
\r
// edit the properties of existing group\r