Should call deselectAll when escape pressed
authoramwaterhouse <Andrew Waterhouse>
Thu, 8 Dec 2005 15:39:46 +0000 (15:39 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 8 Dec 2005 15:39:46 +0000 (15:39 +0000)
src/jalview/appletgui/AlignmentPanel.java

index 3771a57..81b999f 100755 (executable)
@@ -112,8 +112,7 @@ public class AlignmentPanel extends Panel implements AdjustmentListener
       switch (evt.getKeyCode())\r
       {\r
         case 27: // escape key\r
-          av.setSelectionGroup(null);\r
-          alignFrame.alignPanel.repaint();\r
+          alignFrame.deselectAllSequenceMenuItem_actionPerformed(null);\r
           break;\r
         case KeyEvent.VK_X:\r
           if (evt.isControlDown())\r