mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-15 06:08:35 +00:00
WAGE: Skip disabled command on shortcuts
This commit is contained in:
parent
1158987a1e
commit
1b27abafdc
@ -547,7 +547,7 @@ void Menu::processMenuShortCut(byte flags, uint16 ascii) {
|
||||
if (flags & (Common::KBD_CTRL | Common::KBD_META)) {
|
||||
for (int i = 0; i < _items.size(); i++)
|
||||
for (int j = 0; j < _items[i]->subitems.size(); j++)
|
||||
if (tolower(_items[i]->subitems[j]->shortcut) == ascii) {
|
||||
if (_items[i]->subitems[j]->enabled && tolower(_items[i]->subitems[j]->shortcut) == ascii) {
|
||||
executeCommand(_items[i]->subitems[j]);
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user