From 39405cbb25b5376660dfb0852f2aa1cf1e337888 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 22 Jun 2007 17:51:17 +0000 Subject: Changed default buttons of MessageDialogs and mass add dialog to accept 'return' as hotkey for the default button, instead of 'enter' (resp. even 'nothing' on some systems) svn-id: r27611 --- gui/massadd.cpp | 2 +- gui/message.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'gui') diff --git a/gui/massadd.cpp b/gui/massadd.cpp index de54cada26..06b09a590f 100644 --- a/gui/massadd.cpp +++ b/gui/massadd.cpp @@ -85,7 +85,7 @@ MassAddDialog::MassAddDialog(const FilesystemNode &startDir) _gameProgressText = new StaticTextWidget(this, "massadddialog_gameprogress", "... progress ..."); - _okButton = new ButtonWidget(this, "massadddialog_ok", "OK", kOkCmd, '\n'); + _okButton = new ButtonWidget(this, "massadddialog_ok", "OK", kOkCmd, '\r'); _okButton->setEnabled(false); new ButtonWidget(this, "massadddialog_cancel", "Cancel", kCancelCmd, '\27'); diff --git a/gui/message.cpp b/gui/message.cpp index 114d4f38c5..a2de81d1e3 100644 --- a/gui/message.cpp +++ b/gui/message.cpp @@ -96,7 +96,7 @@ MessageDialog::MessageDialog(const Common::String &message, const char *defaultB } if (defaultButton) - addButton(this, okButtonPos, _h - buttonHeight - 8, defaultButton, kOkCmd, '\n'); // Confirm dialog + addButton(this, okButtonPos, _h - buttonHeight - 8, defaultButton, kOkCmd, '\r'); // Confirm dialog if (altButton) addButton(this, cancelButtonPos, _h - buttonHeight - 8, altButton, kCancelCmd, '\27'); // Cancel dialog -- cgit v1.2.3