Nav: Honoring ImGuiItemFlags_NoNav which is used by color picker (#787)

This commit is contained in:
omar 2017-10-20 20:35:39 +02:00
parent e4bb9102f9
commit 23b9060468

View File

@ -2275,7 +2275,7 @@ static void ImGui::NavProcessItem(ImGuiWindow* window, const ImRect& nav_bb, con
} }
// Scoring for navigation // Scoring for navigation
if (g.NavId != id) if (g.NavId != id && !(item_flags & ImGuiItemFlags_NoNav))
{ {
#if IMGUI_DEBUG_NAV #if IMGUI_DEBUG_NAV
// [DEBUG] Score all items in NavWindow at all times // [DEBUG] Score all items in NavWindow at all times