From a88d189f181a30078cb08fa3051ac9a8f8c5c94f Mon Sep 17 00:00:00 2001 From: ocornut Date: Sat, 30 Jul 2016 23:52:03 +0200 Subject: [PATCH] Nav: MoveRequest doesn't affect io.NavUsable so that navigation failure doesn't trigger false positive & not needed (undo part of 3cc1419df) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 0d5b3688..543ad9ef 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -2475,7 +2475,7 @@ static void NavUpdate() // Set output flags for user application g.IO.NavUsable = g.FocusedWindow && !(g.FocusedWindow->Flags & ImGuiWindowFlags_NoNavInputs); - g.IO.NavActive = (g.IO.NavUsable && g.NavId != 0 && !g.NavDisableHighlight) || (g.NavWindowingTarget != NULL) || g.NavMoveRequest || g.NavInitDefaultRequest; + g.IO.NavActive = (g.IO.NavUsable && g.NavId != 0 && !g.NavDisableHighlight) || (g.NavWindowingTarget != NULL) || g.NavInitDefaultRequest; // Process NavCancel input (to close a popup, get back to parent, clear focus) if (IsKeyPressedMap(ImGuiKey_NavCancel))