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
This commit is contained in:
bicarus
2026-07-21 21:13:18 -07:00
committed by GitHub
parent 39bf17aafe
commit e2daefbb6a
+2 -2
View File
@@ -252,7 +252,7 @@ namespace overlay::windows {
} }
// Renders an arrow-less, non-collapsible left-nav header row, highlighted when // 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. // own selection side effects.
bool Config::build_nav_header(const char *label, bool active) { bool Config::build_nav_header(const char *label, bool active) {
ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags_Leaf; ImGuiTreeNodeFlags flags = ImGuiTreeNodeFlags_Leaf;
@@ -283,7 +283,7 @@ namespace overlay::windows {
ImGui::PopStyleColor(colors_pushed); ImGui::PopStyleColor(colors_pushed);
} }
return ImGui::IsItemClicked(); return ImGui::IsItemActivated();
} }
void Config::build_options_tab(float page_offset) { void Config::build_options_tab(float page_offset) {