From b67b5e0fb0aa385f944431a402efcc05051a0127 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 10 Apr 2006 12:32:58 +0000 Subject: [PATCH] del and backspace do the same thing --- src/jalview/appletgui/AlignFrame.java | 6 ++---- src/jalview/gui/AlignmentPanel.java | 9 +++------ 2 files changed, 5 insertions(+), 10 deletions(-) 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: -- 1.7.10.2