Comments around ImGuiInputFlags.

This commit is contained in:
ocornut
2024-01-16 16:25:02 +01:00
parent 1cc0eb4d32
commit 80d5cb1ab1
2 changed files with 29 additions and 18 deletions

View File

@ -8400,6 +8400,7 @@ bool ImGui::SetShortcutRouting(ImGuiKeyChord key_chord, ImGuiID owner_id, ImGuiI
if (flags & ImGuiInputFlags_RouteUnlessBgFocused)
if (g.NavWindow == NULL)
return false;
// Note how ImGuiInputFlags_RouteAlways won't set routing and thus won't set owner. May want to rework this?
if (flags & ImGuiInputFlags_RouteAlways)
{