From e54898733c58c4768e29393995a9e95f5ffadca8 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Thu, 5 Dec 2019 19:44:05 +0100 Subject: [PATCH] Button focus issue --- radio/src/thirdparty/libopenui/src/button.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/radio/src/thirdparty/libopenui/src/button.cpp b/radio/src/thirdparty/libopenui/src/button.cpp index 011c07d3f..167a348ae 100644 --- a/radio/src/thirdparty/libopenui/src/button.cpp +++ b/radio/src/thirdparty/libopenui/src/button.cpp @@ -49,10 +49,10 @@ void Button::onEvent(event_t event) bool Button::onTouchEnd(coord_t x, coord_t y) { if (enabled()) { - onPress(); if (!(windowFlags & NO_FOCUS)) { setFocus(); } + onPress(); } return true; } @@ -102,7 +102,6 @@ void TextButton::paint(BitmapBuffer * dc) } } - TRACE("ICI %d %d", rect.h, getFontHeight(textFlags)); dc->drawText(rect.w / 2, (rect.h - getFontHeight(textFlags)) / 2, text.c_str(), CENTERED | textFlags | textColor); }