|
@@ -11383,10 +11383,12 @@ void ImGui::NavProcessItemForTabbingRequest(ImGuiID id, ImGuiItemFlags item_flag
|
|
|
ImGuiContext& g = *GImGui;
|
|
|
|
|
|
if ((move_flags & ImGuiNavMoveFlags_FocusApi) == 0)
|
|
|
+ {
|
|
|
if (g.NavLayer != g.CurrentWindow->DC.NavLayerCurrent)
|
|
|
return;
|
|
|
- if (g.NavFocusScopeId != g.CurrentFocusScopeId)
|
|
|
- return;
|
|
|
+ if (g.NavFocusScopeId != g.CurrentFocusScopeId)
|
|
|
+ return;
|
|
|
+ }
|
|
|
|
|
|
// - Can always land on an item when using API call.
|
|
|
// - Tabbing with _NavEnableKeyboard (space/enter/arrows): goes through every item.
|