From dc9164a4318ed237383d24e08ee79abda9c31e8d Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 8 Sep 2014 21:20:15 +0200 Subject: [PATCH] personalize.cpp: add shortcut to pluginSelectionMenu Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/fafb7399d131077c2e643940a3d7823d237b35b1 Author: vanhofen Date: 2014-09-08 (Mon, 08 Sep 2014) Origin message was: ------------------ - personalize.cpp: add shortcut to pluginSelectionMenu ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/personalize.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/personalize.cpp b/src/gui/personalize.cpp index 15ac7090d..efa0a7c9f 100644 --- a/src/gui/personalize.cpp +++ b/src/gui/personalize.cpp @@ -475,6 +475,8 @@ static const struct button_label footerButtons[2] = { //init usermenu items void CPersonalizeGui::ShowUserMenu() { + int uMenu_shortcut = 1; + uMenu->addIntroItems(LOCALE_USERMENU_HEAD); uMenu->addItem(new CMenuOptionChooser(LOCALE_PERSONALIZE_USERMENU_SHOW_CANCEL, &g_settings.personalize[SNeutrinoSettings::P_UMENU_SHOW_CANCEL], OPTIONS_OFF0_ON1_OPTIONS, OPTIONS_OFF0_ON1_OPTION_COUNT, true)); @@ -523,7 +525,7 @@ void CPersonalizeGui::ShowUserMenu() oc->setHint(NEUTRINO_ICON_HINT_PERSONALIZE, LOCALE_MENU_HINT_PLUGIN_TYPE_LUA); pluginSelectionMenu->addItem(oc); - uMenu->addItem(new CMenuDForwarder(LOCALE_PERSONALIZE_USERMENU_PLUGIN_TYPES, true, NULL, pluginSelectionMenu)); + uMenu->addItem(new CMenuDForwarder(LOCALE_PERSONALIZE_USERMENU_PLUGIN_TYPES, true, NULL, pluginSelectionMenu, NULL, CRCInput::convertDigitToKey(uMenu_shortcut++))); uMenu->addItem(GenericMenuSeparatorLine); //non-standard usermenu keys