mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 14:20:42 -07: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:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user