|
|
|
@ -6909,6 +6909,22 @@ void ImGui::ActivateItem(ImGuiID id)
|
|
|
|
|
g.NavNextActivateId = id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ImGui::PushFocusScope(ImGuiID id)
|
|
|
|
|
{
|
|
|
|
|
ImGuiContext& g = *GImGui;
|
|
|
|
|
ImGuiWindow* window = g.CurrentWindow;
|
|
|
|
|
window->IDStack.push_back(window->DC.NavFocusScopeIdCurrent);
|
|
|
|
|
window->DC.NavFocusScopeIdCurrent = id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ImGui::PopFocusScope()
|
|
|
|
|
{
|
|
|
|
|
ImGuiContext& g = *GImGui;
|
|
|
|
|
ImGuiWindow* window = g.CurrentWindow;
|
|
|
|
|
window->DC.NavFocusScopeIdCurrent = window->IDStack.back();
|
|
|
|
|
window->IDStack.pop_back();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void ImGui::SetKeyboardFocusHere(int offset)
|
|
|
|
|
{
|
|
|
|
|
IM_ASSERT(offset >= -1); // -1 is allowed but not below
|
|
|
|
|