mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-01 22:30:42 -07:00
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:
@@ -169,8 +169,10 @@ namespace ImGui {
|
|||||||
ImGui::PushStyleColor(ImGuiCol_Header, 0);
|
ImGui::PushStyleColor(ImGuiCol_Header, 0);
|
||||||
ImGui::PushStyleColor(ImGuiCol_HeaderHovered, 0);
|
ImGui::PushStyleColor(ImGuiCol_HeaderHovered, 0);
|
||||||
ImGui::PushStyleColor(ImGuiCol_HeaderActive, 0);
|
ImGui::PushStyleColor(ImGuiCol_HeaderActive, 0);
|
||||||
|
ImGui::PushTabStop(false); // prevent tab navigation
|
||||||
ImGui::Selectable("##row", false,
|
ImGui::Selectable("##row", false,
|
||||||
ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowOverlap);
|
ImGuiSelectableFlags_SpanAllColumns | ImGuiSelectableFlags_AllowOverlap);
|
||||||
|
ImGui::PopTabStop();
|
||||||
ImGui::PopStyleColor(3);
|
ImGui::PopStyleColor(3);
|
||||||
if (ImGui::IsItemHovered()) {
|
if (ImGui::IsItemHovered()) {
|
||||||
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg1, IM_COL32(200, 200, 200, 24));
|
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg1, IM_COL32(200, 200, 200, 24));
|
||||||
|
|||||||
Reference in New Issue
Block a user