update.cpp/update_menu.cpp: add hotkeys

Origin commit data
------------------
Commit: 6ff5a915bd
Author: defans <defans@bluepeercrew.us>
Date: 2012-06-16 (Sat, 16 Jun 2012)

Origin message was:
------------------
- update.cpp/update_menu.cpp: add hotkeys
This commit is contained in:
defans
2012-06-16 00:21:00 +02:00
committed by vanhofen
parent b527194a80
commit d50a9ff04d
2 changed files with 5 additions and 3 deletions

View File

@@ -607,6 +607,8 @@ void CFlashExpert::writemtd(const std::string & filename, int mtdNumber)
void CFlashExpert::showMTDSelector(const std::string & actionkey)
{
int shortcut = 0;
mn_widget_id_t widget_id = NO_WIDGET_ID;
if (actionkey == "readmtd")
widget_id = MN_WIDGET_ID_MTDREAD_SELECTOR;
@@ -625,7 +627,7 @@ void CFlashExpert::showMTDSelector(const std::string & actionkey)
if ((actionkey == "writemtd") && (lx == 0))
enabled = false;
sprintf(sActionKey, "%s%d", actionkey.c_str(), lx);
mtdselector->addItem(new CMenuForwarderNonLocalized(mtdInfo->getMTDName(lx).c_str(), enabled, NULL, this, sActionKey));
mtdselector->addItem(new CMenuForwarderNonLocalized(mtdInfo->getMTDName(lx).c_str(), enabled, NULL, this, sActionKey, CRCInput::convertDigitToKey(shortcut++)));
}
mtdselector->exec(NULL,"");
delete mtdselector;