From e2daefbb6aea64e96b10751af401485559ac7a81 Mon Sep 17 00:00:00 2001 From: bicarus <202771338+bicarus-dev@users.noreply.github.com> Date: Tue, 21 Jul 2026 21:13:18 -0700 Subject: [PATCH] overlay: can't press enter to select sub-tab in Controller tab (#826) ## Link to GitHub Issue or related Pull Request, if one exists Another bug reported by a sea creature ## Description of change Fix keyboard navigation in Controllers sub tabs. ## Testing --- src/spice2x/overlay/windows/config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spice2x/overlay/windows/config.cpp b/src/spice2x/overlay/windows/config.cpp index 992c6a0..06222bd 100644 --- a/src/spice2x/overlay/windows/config.cpp +++ b/src/spice2x/overlay/windows/config.cpp @@ -252,7 +252,7 @@ namespace overlay::windows { } // Renders an arrow-less, non-collapsible left-nav header row, highlighted when - // active. Returns true if the row was clicked this frame; callers apply their + // active. Returns true if the row was activated this frame; callers apply their // own selection side effects. bool Config::build_nav_header(const char *label, bool active) { ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags_Leaf; @@ -283,7 +283,7 @@ namespace overlay::windows { ImGui::PopStyleColor(colors_pushed); } - return ImGui::IsItemClicked(); + return ImGui::IsItemActivated(); } void Config::build_options_tab(float page_offset) {