From 2a8eb618dcc9443a6b741f22b3cf0b0ee038e8b2 Mon Sep 17 00:00:00 2001 From: omar Date: Thu, 28 Sep 2017 00:36:58 +0200 Subject: [PATCH] Nav: Fixed NavDown to open menu from a menu bar (#787) --- imgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/imgui.cpp b/imgui.cpp index 44088aad..43ffbde9 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -10039,6 +10039,7 @@ bool ImGui::BeginMenu(const char* label, bool enabled) else if (g.NavId == id && g.NavMoveRequest && g.NavMoveDir == ImGuiDir_Down) // Menu bar: Nav-Down to open { g.NavMoveRequest = false; + want_open = true; } if (!enabled) // explicitly close if an open menu becomes disabled, facilitate users code a lot in pattern such as 'if (BeginMenu("options", has_object)) { ..use object.. }'