Set some keybindings on OK dialog.

SVN revision: 19840
This commit is contained in:
Kim Woelders 2006-01-15 23:04:52 +00:00
parent 1a2663672e
commit 51902b8179
1 changed files with 2 additions and 0 deletions

View File

@ -2064,6 +2064,8 @@ DialogOKstr(const char *title, const char *txt)
DialogSetText(d, txt);
DialogAddButton(d, _("OK"), NULL, 1, DLG_BUTTON_OK);
DialogBindKey(d, "Return", DialogCallbackClose, 0);
DialogBindKey(d, "Escape", DialogCallbackClose, 0);
ShowDialog(d);
}