Allow alt button for Mac applet group editing
authoramwaterhouse <Andrew Waterhouse>
Tue, 12 Sep 2006 09:19:18 +0000 (09:19 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 12 Sep 2006 09:19:18 +0000 (09:19 +0000)
src/jalview/appletgui/AlignFrame.java

index 45dd143..86c079c 100755 (executable)
@@ -260,7 +260,10 @@ public class AlignFrame extends Frame implements ActionListener,
       case KeyEvent.VK_SPACE:\r
         if(viewport.cursorMode)\r
         {\r
-          alignPanel.seqPanel.insertGapAtCursor(evt.isControlDown());\r
+          alignPanel.seqPanel.insertGapAtCursor(evt.isControlDown()\r
+                                                || evt.isShiftDown()\r
+                                                || evt.isAltDown()\r
+              );\r
         }\r
         break;\r
 \r
@@ -268,7 +271,10 @@ public class AlignFrame extends Frame implements ActionListener,
       case KeyEvent.VK_BACK_SPACE:\r
         if(viewport.cursorMode)\r
         {\r
-          alignPanel.seqPanel.deleteGapAtCursor(evt.isControlDown());\r
+          alignPanel.seqPanel.deleteGapAtCursor(evt.isControlDown()\r
+                                                || evt.isShiftDown()\r
+                                                || evt.isAltDown()\r
+              );\r
         }\r
        else\r
         {\r