From d1779b93faa8dcd015d9fdabf80dd35734cf95c0 Mon Sep 17 00:00:00 2001 From: bicarus <202771338+bicarus-dev@users.noreply.github.com> Date: Mon, 6 Apr 2026 01:02:56 -0700 Subject: [PATCH] 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 --- src/spice2x/overlay/imgui/extensions.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/spice2x/overlay/imgui/extensions.cpp b/src/spice2x/overlay/imgui/extensions.cpp index 3b92256..f03370f 100644 --- a/src/spice2x/overlay/imgui/extensions.cpp +++ b/src/spice2x/overlay/imgui/extensions.cpp @@ -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));