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
|
// Keyboard control
|
||||||
_keyboardInput = true;
|
_keyboardInput = true;
|
||||||
|
|
||||||
if (_keyPress >= 'A' && _keyPress <= 'Z') {
|
char key = toupper(_keyPress);
|
||||||
const char *c = strchr(commands, _keyPress);
|
const char *c = strchr(commands, key);
|
||||||
_temp = !c ? 12 : c - commands;
|
if (c) {
|
||||||
|
_temp = c - commands;
|
||||||
|
_key = key;
|
||||||
} else {
|
} else {
|
||||||
_temp = 12;
|
_temp = 12;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue