From 23b9060468731259f449f3efb0d1d6c531c02b59 Mon Sep 17 00:00:00 2001 From: omar Date: Fri, 20 Oct 2017 20:35:39 +0200 Subject: [PATCH] Nav: Honoring ImGuiItemFlags_NoNav which is used by color picker (#787) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 54097f5f..446fa59e 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -2275,7 +2275,7 @@ static void ImGui::NavProcessItem(ImGuiWindow* window, const ImRect& nav_bb, con } // Scoring for navigation - if (g.NavId != id) + if (g.NavId != id && !(item_flags & ImGuiItemFlags_NoNav)) { #if IMGUI_DEBUG_NAV // [DEBUG] Score all items in NavWindow at all times