mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-06 04:20:08 +00:00
Nav: clear activeid on menu toggle (so pressing Alt leaving an InputText will steal ActiveID. Previously wouldn't not, but ButtonBehavior() hover logic would not show Menu layer item as hovered when ActiveId != 0). (#787)
(Adjacent to #370)
This commit is contained in:
parent
e61e8aea9c
commit
4540177ce7
2 changed files with 3 additions and 0 deletions
|
|
@ -9648,6 +9648,8 @@ static void ImGui::NavUpdateWindowing()
|
|||
// Apply menu/layer toggle
|
||||
if (apply_toggle_layer && g.NavWindow)
|
||||
{
|
||||
ClearActiveID();
|
||||
|
||||
// Move to parent menu if necessary
|
||||
ImGuiWindow* new_nav_window = g.NavWindow;
|
||||
while (new_nav_window->ParentWindow
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue