+ case KeyEvent.VK_PAGE_UP:\r
+ if (viewport.wrapAlignment)\r
+ alignPanel.scrollUp(true);\r
+ else\r
+ alignPanel.setScrollValues(viewport.startRes,\r
+ viewport.startSeq\r
+ - viewport.endSeq + viewport.startSeq);\r
+ break;\r
+\r
+ case KeyEvent.VK_PAGE_DOWN:\r
+ if (viewport.wrapAlignment)\r
+ alignPanel.scrollUp(false);\r
+ else\r
+ alignPanel.setScrollValues(viewport.startRes,\r
+ viewport.startSeq\r
+ + viewport.endSeq - viewport.startSeq);\r
+ break;\r
+\r
+ case KeyEvent.VK_Z:\r
+ if (evt.isControlDown())\r
+ {\r
+ undoMenuItem_actionPerformed();\r
+ }\r
+ break;\r
+\r
+ case KeyEvent.VK_Y:\r
+ if (evt.isControlDown())\r
+ {\r
+ redoMenuItem_actionPerformed();\r
+ }\r
+ break;\r
+\r
+ case KeyEvent.VK_L:\r
+ if (evt.isControlDown())\r
+ {\r
+ trimAlignment(true);\r
+ }\r
+ break;\r
+\r
+ case KeyEvent.VK_R:\r
+ if (evt.isControlDown())\r
+ {\r
+ trimAlignment(false);\r
+ }\r
+ break;\r
+\r
+ case KeyEvent.VK_E:\r
+ if (evt.isControlDown())\r
+ {\r
+ if (evt.isShiftDown())\r
+ this.removeAllGapsMenuItem_actionPerformed();\r
+ else\r
+ removeGappedColumnMenuItem_actionPerformed();\r
+ }\r
+ break;\r
+ case KeyEvent.VK_I:\r
+ if (evt.isControlDown())\r
+ {\r
+ if (evt.isAltDown())\r
+ viewport.invertColumnSelection();\r
+ else\r
+ this.invertSequenceMenuItem_actionPerformed();\r
+ }\r