From e20f8564752c6a44f80e60ae2de6a0f52484c807 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Thu, 18 Feb 2021 18:42:31 +0100 Subject: [PATCH] More beeps --- radio/src/thirdparty/libopenui/src/table.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radio/src/thirdparty/libopenui/src/table.cpp b/radio/src/thirdparty/libopenui/src/table.cpp index 06764889b..bbb5d2226 100644 --- a/radio/src/thirdparty/libopenui/src/table.cpp +++ b/radio/src/thirdparty/libopenui/src/table.cpp @@ -83,6 +83,7 @@ bool Table::Body::onTouchEnd(coord_t x, coord_t y) { unsigned index = y / TABLE_LINE_HEIGHT; if (index < lines.size()) { + onKeyPress(); setFocus(SET_FOCUS_DEFAULT); auto onPress = lines[index]->onPress; if (onPress) @@ -99,12 +100,14 @@ void Table::Body::onEvent(event_t event) if (event == EVT_KEY_BREAK(KEY_ENTER)) { if (selection >= 0) { + onKeyPress(); auto onPress = lines[selection]->onPress; if (onPress) onPress(); } } if (event == EVT_ROTARY_RIGHT) { + onKeyPress(); auto table = static_cast(parent); if (table->getWindowFlags() & FORWARD_SCROLL) { auto index = selection + 1; @@ -126,6 +129,7 @@ void Table::Body::onEvent(event_t event) } } else if (event == EVT_ROTARY_LEFT) { + onKeyPress(); auto table = static_cast
(parent); if (table->getWindowFlags() & FORWARD_SCROLL) { auto index = selection - 1;