btns.add(createShowEditorStackButton());
return btns;
}
private KongaButton createShowEditorStackButton() {
final KongaButton b = new KongaButton(showEditorStackAction);
Action keyActivator = new AbstractAction() {
@Override
public void actionPerformed(ActionEvent e) {
b.doClick();
}
};
keyActivator.putValue(Action.ACCELERATOR_KEY, KeyUtils.getAltDown(KeyEvent.VK_DOWN));
ActionKeyBinding.install(keyActivator, b, JComponent.WHEN_IN_FOCUSED_WINDOW);
return b;