Fixed focus issue with switch choices
This commit is contained in:
committed by
Raphael Coeffic
parent
162ffdb148
commit
589398a65c
@@ -105,6 +105,7 @@ void SourceChoice::fillMenu(Menu * menu, const std::function<bool(int16_t)> & fi
|
||||
setValue(val);
|
||||
}
|
||||
this->fillMenu(menu);
|
||||
menu->setFocusBody();
|
||||
}
|
||||
});
|
||||
#endif
|
||||
@@ -140,9 +141,9 @@ void SourceChoice::onEvent(event_t event)
|
||||
#if defined(HARDWARE_TOUCH)
|
||||
bool SourceChoice::onTouchEnd(coord_t, coord_t)
|
||||
{
|
||||
openMenu();
|
||||
setFocus(SET_FOCUS_DEFAULT);
|
||||
setEditMode(true);
|
||||
openMenu();
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -131,9 +131,9 @@ void SwitchChoice::onEvent(event_t event)
|
||||
#if defined(HARDWARE_TOUCH)
|
||||
bool SwitchChoice::onTouchEnd(coord_t, coord_t)
|
||||
{
|
||||
openMenu();
|
||||
setFocus(SET_FOCUS_DEFAULT);
|
||||
setEditMode(true);
|
||||
openMenu();
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
Vendored
+1
-1
Submodule radio/src/thirdparty/libopenui updated: 67c2027d32...c7bd04e80a
Reference in New Issue
Block a user