mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-18 06:06:35 +00:00
Nav: Using CTRL+TAB / PadFocusNext/Prev to Focus a window closes the previous window popups. (#787)
This commit is contained in:
parent
fd6d8863f7
commit
5812d0b751
@ -2832,6 +2832,7 @@ static void ImGui::NavUpdateWindowing()
|
|||||||
g.NavDisableHighlight = false;
|
g.NavDisableHighlight = false;
|
||||||
g.NavDisableMouseHover = true;
|
g.NavDisableMouseHover = true;
|
||||||
apply_focus_window = NavRestoreLastChildNavWindow(apply_focus_window);
|
apply_focus_window = NavRestoreLastChildNavWindow(apply_focus_window);
|
||||||
|
CloseInactivePopups(apply_focus_window);
|
||||||
FocusWindow(apply_focus_window);
|
FocusWindow(apply_focus_window);
|
||||||
if (apply_focus_window->NavLastIds[0] == 0)
|
if (apply_focus_window->NavLastIds[0] == 0)
|
||||||
NavInitWindow(apply_focus_window, false);
|
NavInitWindow(apply_focus_window, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user