boolean (KeyStroke ks, KeyEvent e, int condition, boolean pressed) { if (e.getKeyCode() == KeyEvent.VK_ENTER && myTree.isEditing() && e.getModifiersEx() == 0 && pressed) { myTree.stopEditing(); return true; } if (myAllowSyncStrategy && e.getKeyCode() == KeyEvent.VK_F2 && e.getModifiersEx() == InputEvent.ALT_DOWN_MASK && pressed) { startSyncEditing(); return true; } if (CheckboxTreeHelper.isToggleEvent(e, myTree) && pressed) { toggleRepositoriesFromCommits(); return true; } return super.processKeyBinding(ks, e, condition, pressed); }