mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-16 00:54:19 +00:00
Nav: Fixed Ctrl+Tab keeping active InputText() of a previous window active after the switch. (#2380)
This commit is contained in:
parent
f4dd990e38
commit
ac4842fa17
2 changed files with 5 additions and 1 deletions
|
|
@ -7993,7 +7993,9 @@ static void NavUpdateWindowingHighlightWindow(int focus_change_dir)
|
|||
g.NavWindowingToggleLayer = false;
|
||||
}
|
||||
|
||||
// Window management mode (hold to: change focus/move/resize, tap to: toggle menu layer)
|
||||
// Windowing management mode
|
||||
// Keyboard: CTRL+Tab (change focus/move/resize), Alt (toggle menu layer)
|
||||
// Gamepad: Hold Menu/Square (change focus/move/resize), Tap Menu/Square (toggle menu layer)
|
||||
static void ImGui::NavUpdateWindowing()
|
||||
{
|
||||
ImGuiContext& g = *GImGui;
|
||||
|
|
@ -8096,6 +8098,7 @@ static void ImGui::NavUpdateWindowing()
|
|||
g.NavDisableMouseHover = true;
|
||||
apply_focus_window = NavRestoreLastChildNavWindow(apply_focus_window);
|
||||
ClosePopupsOverWindow(apply_focus_window);
|
||||
ClearActiveID();
|
||||
FocusWindow(apply_focus_window);
|
||||
if (apply_focus_window->NavLastIds[0] == 0)
|
||||
NavInitWindow(apply_focus_window, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue