mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 19:02:00 +00:00
fix(nearby): the ping popup scrolls to its last result row
The OLED popup fits 3 rows, a finished ping has 4; UP/DOWN were swallowed so SNR back stayed hidden. Enter on any row sends. Fixes #50. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -530,10 +530,10 @@ class NearbyScreen : public UIScreen, protected NearbyModel {
|
|||||||
if (pingRowCount() != _ping_menu.count()) rebuildPingMenu();
|
if (pingRowCount() != _ping_menu.count()) rebuildPingMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ping popup input. Result rows are read-only, so UP/DOWN are swallowed to keep
|
// Ping popup input. UP/DOWN scroll: on the OLED the popup fits 3 rows, so a
|
||||||
// the highlight on "Send".
|
// full result (Send + RTT + 2 SNR) needs scrolling to show the last one.
|
||||||
|
// Result rows are read-only, so Enter on any row sends.
|
||||||
void handlePingMenuInput(char c) {
|
void handlePingMenuInput(char c) {
|
||||||
if (c == KEY_UP || c == KEY_DOWN) return;
|
|
||||||
auto res = _ping_menu.handleInput(c);
|
auto res = _ping_menu.handleInput(c);
|
||||||
if (res == PopupMenu::SELECTED) {
|
if (res == PopupMenu::SELECTED) {
|
||||||
const Entry* e = selected();
|
const Entry* e = selected();
|
||||||
|
|||||||
Reference in New Issue
Block a user