haiku_loader: search for matching shortcut in supermenus

Fixes #7469.
This commit is contained in:
Jessica Hamilton
2014-04-07 22:14:08 +12:00
parent dc8a0aecf1
commit c552bd6771
+10
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;
}