MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / SetActiveIdUsingAllKeyboardKeys

Method SetActiveIdUsingAllKeyboardKeys

include/imgui/imgui.cpp:6390–6397  ·  view source on GitHub ↗

This is a shortcut for not taking ownership of 100+ keys, frequently used by drag operations. FIXME: It might be undesirable that this will likely disable KeyOwner-aware shortcuts systems. Consider a more fine-tuned version if needed?

Source from the content-addressed store, hash-verified

6388// This is a shortcut for not taking ownership of 100+ keys, frequently used by drag operations.
6389// FIXME: It might be undesirable that this will likely disable KeyOwner-aware shortcuts systems. Consider a more fine-tuned version if needed?
6390void ImGui::SetActiveIdUsingAllKeyboardKeys()
6391{
6392 ImGuiContext& g = *GImGui;
6393 IM_ASSERT(g.ActiveId != 0);
6394 g.ActiveIdUsingNavDirMask = (1 << ImGuiDir_COUNT) - 1;
6395 g.ActiveIdUsingAllKeyboardKeys = true;
6396 NavMoveRequestCancel();
6397}
6398
6399ImGuiID ImGui::GetItemID()
6400{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected