aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock
diff options
context:
space:
mode:
authorPaul Gilbert2015-10-10 17:57:56 -0400
committerPaul Gilbert2015-10-10 17:57:56 -0400
commitd089172f8725156dad47a7c02544f04a4833ce79 (patch)
treea6f80dcccdeb969bffcbdc19fee5c16362b68912 /engines/sherlock
parent980810703e66a82d9868ac2fd4968261299e7468 (diff)
downloadscummvm-rg350-d089172f8725156dad47a7c02544f04a4833ce79.tar.gz
scummvm-rg350-d089172f8725156dad47a7c02544f04a4833ce79.tar.bz2
scummvm-rg350-d089172f8725156dad47a7c02544f04a4833ce79.zip
SHERLOCK: SS: Fix using keys to select UI buttons
Diffstat (limited to 'engines/sherlock')
-rw-r--r--engines/sherlock/scalpel/scalpel_user_interface.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/sherlock/scalpel/scalpel_user_interface.cpp b/engines/sherlock/scalpel/scalpel_user_interface.cpp
index 6ee9577a5d..8baf4fe7da 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;
}