From 64098bc4dc20c34b432dceea61f083901bfc5499 Mon Sep 17 00:00:00 2001 From: Jakub <106778416+MarekZegare4@users.noreply.github.com> Date: Thu, 21 May 2026 08:13:13 +0200 Subject: [PATCH] fix: change [M]=Discover hint to [Enter]=Discover in NearbyScreen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [M] key doesn't exist on the device; context menu is long-press Enter. Also handle KEY_ENTER directly when the list is empty so the hint is accurate — pressing Enter with no contacts enters discover mode without going through the context menu. Co-Authored-By: Claude Sonnet 4.6 --- examples/companion_radio/ui-new/NearbyScreen.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/companion_radio/ui-new/NearbyScreen.h b/examples/companion_radio/ui-new/NearbyScreen.h index b7ee25dd..ec3f5421 100644 --- a/examples/companion_radio/ui-new/NearbyScreen.h +++ b/examples/companion_radio/ui-new/NearbyScreen.h @@ -328,7 +328,7 @@ public: if (_count == 0) { display.drawTextCentered(display.width() / 2, 28, "No contacts found"); - display.drawTextCentered(display.width() / 2, 40, "[M]=Discover"); + display.drawTextCentered(display.width() / 2, 40, "[Enter]=Discover"); } else { for (int i = 0; i < VISIBLE && (_scroll + i) < _count; i++) { int idx = _scroll + i; @@ -411,6 +411,7 @@ public: if (_sel >= _scroll + VISIBLE) _scroll = _sel - VISIBLE + 1; return true; } + if (c == KEY_ENTER && _count == 0) { enterDiscoverMode(); return true; } if (c == KEY_ENTER && _count > 0) { _detail = true; _detail_refresh_ms = millis();