FileChoice: openMenu() after setFocus()
Otherwise, whatever is opened by the menu will loose the focus
This commit is contained in:
+1
-1
@@ -140,9 +140,9 @@ void FileChoice::onEvent(event_t event)
|
|||||||
#if defined(HARDWARE_TOUCH)
|
#if defined(HARDWARE_TOUCH)
|
||||||
bool FileChoice::onTouchEnd(coord_t, coord_t)
|
bool FileChoice::onTouchEnd(coord_t, coord_t)
|
||||||
{
|
{
|
||||||
openMenu();
|
|
||||||
setFocus(SET_FOCUS_DEFAULT);
|
setFocus(SET_FOCUS_DEFAULT);
|
||||||
setEditMode(true);
|
setEditMode(true);
|
||||||
|
openMenu();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user