SHERLOCK: SS: Fix using keys to select UI buttons
This commit is contained in:
parent
980810703e
commit
d089172f87
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue