mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-06 04:20:08 +00:00
Navigation: Renamed ImGuiKey_NavWindowing to ImGuiKey_NavMenu (#323)
This commit is contained in:
parent
175f42420c
commit
c3aa36d9ab
2 changed files with 3 additions and 3 deletions
|
|
@ -2364,7 +2364,7 @@ static void NavUpdate()
|
|||
}
|
||||
|
||||
// Navigation windowing mode (change focus, move/resize window)
|
||||
if (!g.NavWindowingTarget && g.NavWindow && IsKeyPressedMap(ImGuiKey_NavWindowing, false))
|
||||
if (!g.NavWindowingTarget && g.NavWindow && IsKeyPressedMap(ImGuiKey_NavMenu, false))
|
||||
g.NavWindowingTarget = g.NavWindow->RootNonPopupWindow;
|
||||
if (g.NavWindowingTarget)
|
||||
{
|
||||
|
|
@ -2390,7 +2390,7 @@ static void NavUpdate()
|
|||
}
|
||||
|
||||
// Apply actual focus only when leaving NavWindowing mode (until then the window was merely rendered front-most)
|
||||
if (!IsKeyDownMap(ImGuiKey_NavWindowing))
|
||||
if (!IsKeyDownMap(ImGuiKey_NavMenu))
|
||||
{
|
||||
if (g.NavWindowingTarget)
|
||||
if (!g.FocusedWindow || (g.NavWindowingTarget->RootNonPopupWindow != g.FocusedWindow->RootNonPopupWindow))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue