- /*
- * Bind Cmd-Alt/I (invert column selection)
- */
- // If AlignFrame exposed a Map of Action objects by key,
- // we could delegate all key bindings with a single lookup
- this.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(
- KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_I, Toolkit
- .getDefaultToolkit().getMenuShortcutKeyMask()
- | java.awt.event.KeyEvent.ALT_MASK, false),
- "INV_SEQ_SEL");
- this.getActionMap().put("INV_SEQ_SEL", new AbstractAction()
- {
- @Override
- public void actionPerformed(ActionEvent e)
- {
- Component c = getComponentAtMouse();
- if (c instanceof AlignFrame)
- {
- ((AlignFrame) c).invertColSel_actionPerformed(null);
- }
- }
- });