del and backspace do the same thing
authoramwaterhouse <Andrew Waterhouse>
Mon, 10 Apr 2006 12:32:58 +0000 (12:32 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 10 Apr 2006 12:32:58 +0000 (12:32 +0000)
src/jalview/appletgui/AlignFrame.java
src/jalview/gui/AlignmentPanel.java

index 6b79018..1ecf254 100755 (executable)
@@ -329,14 +329,12 @@ public class AlignFrame extends Frame implements ActionListener,
         break;\r
 \r
       case KeyEvent.VK_DELETE:\r
+      case KeyEvent.VK_BACK_SPACE:\r
         if(viewport.cursorMode)\r
         {\r
           alignPanel.seqPanel.deleteGapAtCursor(evt.isControlDown());\r
         }\r
-        break;\r
-\r
-      case KeyEvent.VK_BACK_SPACE:\r
-        if(!viewport.cursorMode)\r
+       else\r
         {\r
           cut_actionPerformed();\r
           alignPanel.seqPanel.seqCanvas.repaint();\r
index 2800f85..364be5d 100755 (executable)
@@ -161,18 +161,15 @@ public class AlignmentPanel extends GAlignmentPanel
             break;\r
 \r
           case KeyEvent.VK_DELETE:\r
-            if(av.cursorMode)\r
-            {\r
-              seqPanel.deleteGapAtCursor(evt.isControlDown() || evt.isShiftDown());\r
-            }\r
-            break;\r
-\r
           case KeyEvent.VK_BACK_SPACE:\r
             if(!av.cursorMode)\r
             {\r
               alignFrame.cut_actionPerformed(null);\r
               seqPanel.seqCanvas.repaint();\r
             }\r
+            else\r
+              seqPanel.deleteGapAtCursor(evt.isControlDown() || evt.isShiftDown());\r
+\r
             break;\r
 \r
           case KeyEvent.VK_S:\r