feat(color): Long press SYS on main screen for radio setup (#3092)
This commit is contained in:
@@ -260,15 +260,20 @@ void ViewMain::onEvent(event_t event)
|
|||||||
new ModelLabelsWindow();
|
new ModelLabelsWindow();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// TODO:
|
case EVT_KEY_BREAK(KEY_RADIO):
|
||||||
// - use BREAK instead
|
|
||||||
// - use LONG for "Tools" page
|
|
||||||
//
|
|
||||||
case EVT_KEY_FIRST(KEY_RADIO):
|
|
||||||
if (viewMainMenu) viewMainMenu->onCancel();
|
if (viewMainMenu) viewMainMenu->onCancel();
|
||||||
new RadioMenu();
|
new RadioMenu();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case EVT_KEY_LONG(KEY_RADIO):
|
||||||
|
{
|
||||||
|
killEvents(KEY_RADIO);
|
||||||
|
// Radio setup
|
||||||
|
auto m = new RadioMenu();
|
||||||
|
m->setCurrentTab(2);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case EVT_KEY_FIRST(KEY_TELEM):
|
case EVT_KEY_FIRST(KEY_TELEM):
|
||||||
if (viewMainMenu) viewMainMenu->onCancel();
|
if (viewMainMenu) viewMainMenu->onCancel();
|
||||||
new ScreenMenu();
|
new ScreenMenu();
|
||||||
|
|||||||
Reference in New Issue
Block a user