From: amwaterhouse Date: Mon, 10 Apr 2006 12:32:58 +0000 (+0000) Subject: del and backspace do the same thing X-Git-Tag: Release_2_08~22 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b67b5e0fb0aa385f944431a402efcc05051a0127;p=jalview.git del and backspace do the same thing --- diff --git a/src/jalview/appletgui/AlignFrame.java b/src/jalview/appletgui/AlignFrame.java index 6b79018..1ecf254 100755 --- a/src/jalview/appletgui/AlignFrame.java +++ b/src/jalview/appletgui/AlignFrame.java @@ -329,14 +329,12 @@ public class AlignFrame extends Frame implements ActionListener, break; case KeyEvent.VK_DELETE: + case KeyEvent.VK_BACK_SPACE: if(viewport.cursorMode) { alignPanel.seqPanel.deleteGapAtCursor(evt.isControlDown()); } - break; - - case KeyEvent.VK_BACK_SPACE: - if(!viewport.cursorMode) + else { cut_actionPerformed(); alignPanel.seqPanel.seqCanvas.repaint(); diff --git a/src/jalview/gui/AlignmentPanel.java b/src/jalview/gui/AlignmentPanel.java index 2800f85..364be5d 100755 --- a/src/jalview/gui/AlignmentPanel.java +++ b/src/jalview/gui/AlignmentPanel.java @@ -161,18 +161,15 @@ public class AlignmentPanel extends GAlignmentPanel break; case KeyEvent.VK_DELETE: - if(av.cursorMode) - { - seqPanel.deleteGapAtCursor(evt.isControlDown() || evt.isShiftDown()); - } - break; - case KeyEvent.VK_BACK_SPACE: if(!av.cursorMode) { alignFrame.cut_actionPerformed(null); seqPanel.seqCanvas.repaint(); } + else + seqPanel.deleteGapAtCursor(evt.isControlDown() || evt.isShiftDown()); + break; case KeyEvent.VK_S: