mirror of
https://github.com/Drezil/imgui.git
synced 2025-07-07 21:39:54 +02:00
Navigation: Renamed ImGuiKey_NavWindowing to ImGuiKey_NavMenu (#323)
This commit is contained in:
@ -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))
|
||||
|
Reference in New Issue
Block a user