[Scummvm-cvs-logs] scummvm master -> d089172f8725156dad47a7c02544f04a4833ce79
dreammaster
dreammaster at scummvm.org
Sat Oct 10 23:58:58 CEST 2015
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
d089172f87 SHERLOCK: SS: Fix using keys to select UI buttons
Commit: d089172f8725156dad47a7c02544f04a4833ce79
https://github.com/scummvm/scummvm/commit/d089172f8725156dad47a7c02544f04a4833ce79
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-10-10T17:57:56-04:00
Commit Message:
SHERLOCK: SS: Fix using keys to select UI buttons
Changed paths:
engines/sherlock/scalpel/scalpel_user_interface.cpp
diff --git a/engines/sherlock/scalpel/scalpel_user_interface.cpp b/engines/sherlock/scalpel/scalpel_user_interface.cpp
index 6ee9577..8baf4fe 100644
--- a/engines/sherlock/scalpel/scalpel_user_interface.cpp
+++ b/engines/sherlock/scalpel/scalpel_user_interface.cpp
@@ -1298,9 +1298,11 @@ void ScalpelUserInterface::doMainControl() {
// Keyboard control
_keyboardInput = true;
- if (_keyPress >= 'A' && _keyPress <= 'Z') {
- const char *c = strchr(commands, _keyPress);
- _temp = !c ? 12 : c - commands;
+ char key = toupper(_keyPress);
+ const char *c = strchr(commands, key);
+ if (c) {
+ _temp = c - commands;
+ _key = key;
} else {
_temp = 12;
}
More information about the Scummvm-git-logs
mailing list