mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-11-29 10:48:56 -08:00
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:
1 parent
39bf17aafe
commit
e2daefbb6a
1 file changed
+2
-2
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user