IDEA-57522 Exit confirmation dialog default and focused buttons

This commit is contained in:
Alexey Pegov
2010-09-23 17:14:20 +04:00
parent 433eea58b3
commit 5f320c106e
@@ -43,7 +43,9 @@ public class ConfirmExitDialog extends OptionsDialog {
protected Action[] createActions() {
setOKButtonText(CommonBundle.getYesButtonText());
setCancelButtonText(CommonBundle.getNoButtonText());
return new Action[] {getOKAction(), getCancelAction()};
final Action cancelAction = getCancelAction();
cancelAction.putValue(FOCUSED_ACTION, Boolean.TRUE);
return new Action[] {getOKAction(), cancelAction};
}
protected boolean isToBeShown() {