diff options
author | Max Horn | 2007-06-22 17:51:17 +0000 |
---|---|---|
committer | Max Horn | 2007-06-22 17:51:17 +0000 |
commit | 39405cbb25b5376660dfb0852f2aa1cf1e337888 (patch) | |
tree | 8364039598bf50e2dc1bdc3d24f66028c193c006 | |
parent | 73f760becd167a201607b2c0f4434a64bf255574 (diff) | |
download | scummvm-rg350-39405cbb25b5376660dfb0852f2aa1cf1e337888.tar.gz scummvm-rg350-39405cbb25b5376660dfb0852f2aa1cf1e337888.tar.bz2 scummvm-rg350-39405cbb25b5376660dfb0852f2aa1cf1e337888.zip |
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
-rw-r--r-- | gui/massadd.cpp | 2 | ||||
-rw-r--r-- | gui/message.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
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 |