SHERLOCK: SS: Fix using keys to select UI buttons

This commit is contained in:
Paul Gilbert 2015-10-10 17:57:56 -04:00
parent 980810703e
commit d089172f87

View file

@ -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;
}