IM_ASSERT(ImIsPowerOfTwo(flags&ImGuiInputFlags_RouteTypeMask_));// Check that only 1 routing flag is used
if((flags&ImGuiInputFlags_RouteTypeMask_)==0)
flags|=ImGuiInputFlags_RouteGlobal|ImGuiInputFlags_RouteOverFocused|ImGuiInputFlags_RouteOverActive;// IMPORTANT: This is the default for SetShortcutRouting() but NOT Shortcut()
else
IM_ASSERT(ImIsPowerOfTwo(flags&ImGuiInputFlags_RouteTypeMask_));// Check that only 1 routing flag is used
IMGUI_APIboolSetShortcutRouting(ImGuiKeyChordkey_chord,ImGuiInputFlagsflags,ImGuiIDowner_id);// routing policy and owner_id needs to be explicit and cannot be 0
IMGUI_APIboolSetShortcutRouting(ImGuiKeyChordkey_chord,ImGuiInputFlagsflags,ImGuiIDowner_id);// owner_id needs to be explicit and cannot be 0