overlay: remove tab stop from invisible selectable used in options tab (#613)

#598 added extra tab stops to the invisible Selectable widgets, which is
only used for detecting mouse hover
This commit is contained in:
bicarus
2026-04-06 01:02:56 -07:00
committed by GitHub
parent fe9aac7e29
commit d1779b93fa
+2
View File
@@ -169,8 +169,10 @@ namespace ImGui {
ImGui::PushStyleColor(ImGuiCol_Header, 0);
ImGui::PushStyleColor(ImGuiCol_HeaderHovered, 0);
ImGui::PushStyleColor(ImGuiCol_HeaderActive, 0);
ImGui::PushTabStop(false); // prevent tab navigation
ImGui::Selectable("##row", false,
ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowOverlap);
ImGui::PopTabStop();
ImGui::PopStyleColor(3);
if (ImGui::IsItemHovered()) {
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg1, IM_COL32(200, 200, 200, 24));