haiku_loader: search for matching shortcut in supermenus

Fixes #7469.
This commit is contained in:
Jessica Hamilton 2014-04-07 19:52:23 +12:00
parent dc8a0aecf1
commit c552bd6771
1 changed files with 10 additions and 0 deletions

View File

@ -414,6 +414,11 @@ Menu::FindShortcut(char key) const
shortcut = shortcut->next;
}
Menu *superMenu = Supermenu();
if (superMenu != NULL)
return superMenu->FindShortcut(key);
return NULL;
}
@ -430,6 +435,11 @@ Menu::FindItemByShortcut(char key)
return item;
}
Menu *superMenu = Supermenu();
if (superMenu != NULL)
return superMenu->FindItemByShortcut(key);
return NULL;
}