From 60778c55915fc4b1e3b6c1d7ab6f215ce91206af Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Wed, 27 Jan 2016 10:49:17 -0800 Subject: [PATCH] Another tweak to sane-ify transponder apps initial focus. --- firmware/application/recent_entries.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/firmware/application/recent_entries.hpp b/firmware/application/recent_entries.hpp index 87d647ec..8fbbb71a 100644 --- a/firmware/application/recent_entries.hpp +++ b/firmware/application/recent_entries.hpp @@ -186,11 +186,15 @@ public: return false; } + void on_focus() override { + advance(0); + } + private: Entries& recent; using EntryKey = typename Entry::Key; - EntryKey selected_key; + EntryKey selected_key = Entry::invalid_key; void advance(const int32_t amount) { auto selected = recent.find(selected_key);