From d089172f8725156dad47a7c02544f04a4833ce79 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 10 Oct 2015 17:57:56 -0400 Subject: SHERLOCK: SS: Fix using keys to select UI buttons --- engines/sherlock/scalpel/scalpel_user_interface.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'engines/sherlock/scalpel') 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; } -- cgit v1.2.3