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.. }'