diff --git a/radio/src/thirdparty/libopenui/src/button.cpp b/radio/src/thirdparty/libopenui/src/button.cpp index 8a6ea8dc6..cf69bb42f 100644 --- a/radio/src/thirdparty/libopenui/src/button.cpp +++ b/radio/src/thirdparty/libopenui/src/button.cpp @@ -78,12 +78,11 @@ void Button::onEvent(lv_event_t* event) TRACE_WINDOWS("%s received lvgl event code 0x%X", getWindowDebugString("Button").c_str(), code); if (enabled && code == LV_EVENT_CLICKED) { - onKeyPress(); - onPress(); - if (!(windowFlags & NO_FOCUS)) { setFocus(SET_FOCUS_DEFAULT); } + onKeyPress(); + onPress(); } }