FileChoice: openMenu() after setFocus()

Otherwise, whatever is opened by the menu will loose the focus
This commit is contained in:
Raphael Coeffic
2021-05-24 19:10:02 +02:00
parent 18025279c1
commit a3923c35b9
+1 -1
View File
@@ -140,9 +140,9 @@ void FileChoice::onEvent(event_t event)
#if defined(HARDWARE_TOUCH)
bool FileChoice::onTouchEnd(coord_t, coord_t)
{
openMenu();
setFocus(SET_FOCUS_DEFAULT);
setEditMode(true);
openMenu();
return true;
}
#endif