diff options
author | Paul Gilbert | 2015-10-10 17:57:56 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-10-10 17:57:56 -0400 |
commit | d089172f8725156dad47a7c02544f04a4833ce79 (patch) | |
tree | a6f80dcccdeb969bffcbdc19fee5c16362b68912 /engines/sherlock | |
parent | 980810703e66a82d9868ac2fd4968261299e7468 (diff) | |
download | scummvm-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.cpp | 8 |
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; } |