From ad34a24a75ab680fcbdef1376a311fb0e0fcf2cd Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 4 Apr 2006 09:33:58 +0000 Subject: [PATCH] More keys for editing --- src/jalview/gui/AlignmentPanel.java | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/AlignmentPanel.java b/src/jalview/gui/AlignmentPanel.java index a04c5bf..dfa757e 100755 --- a/src/jalview/gui/AlignmentPanel.java +++ b/src/jalview/gui/AlignmentPanel.java @@ -164,8 +164,8 @@ public class AlignmentPanel extends GAlignmentPanel if(av.cursorMode) { seqPanel.deleteGapAtCursor(evt.isControlDown()); - break; } + break; case KeyEvent.VK_BACK_SPACE: if(!av.cursorMode) @@ -175,6 +175,33 @@ public class AlignmentPanel extends GAlignmentPanel } break; + case KeyEvent.VK_S: + if(av.cursorMode) + { + seqPanel.setCursorRow(); + } + break; + case KeyEvent.VK_C: + if(av.cursorMode) + { + seqPanel.setCursorColumn(); + } + break; + case KeyEvent.VK_P: + if(av.cursorMode) + { + seqPanel.setCursorPosition(); + } + break; + + case KeyEvent.VK_ENTER: + case KeyEvent.VK_COMMA: + if(av.cursorMode) + { + seqPanel.setCursorRowAndColumn(); + } + break; + case KeyEvent.VK_Q: if(av.cursorMode) { -- 1.7.10.2