From a3923c35b9d81c756d7fa54798da0fa09d72d122 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Mon, 24 May 2021 19:10:02 +0200 Subject: [PATCH] FileChoice: openMenu() after setFocus() Otherwise, whatever is opened by the menu will loose the focus --- radio/src/thirdparty/libopenui/src/filechoice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/src/thirdparty/libopenui/src/filechoice.cpp b/radio/src/thirdparty/libopenui/src/filechoice.cpp index 162c2bb1b..02a8ccfed 100644 --- a/radio/src/thirdparty/libopenui/src/filechoice.cpp +++ b/radio/src/thirdparty/libopenui/src/filechoice.cpp @@ -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