mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-57522 Exit confirmation dialog default and focused buttons
This commit is contained in:
+3
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user