owner_id may be None/Any, but routing_id needs to be always be set, so we default to GetCurrentFocusScope().
| 8019 | |
| 8020 | // owner_id may be None/Any, but routing_id needs to be always be set, so we default to GetCurrentFocusScope(). |
| 8021 | static inline ImGuiID GetRoutingIdFromOwnerId(ImGuiID owner_id) |
| 8022 | { |
| 8023 | ImGuiContext& g = *GImGui; |
| 8024 | return (owner_id != ImGuiKeyOwner_None && owner_id != ImGuiKeyOwner_Any) ? owner_id : g.CurrentFocusScopeId; |
| 8025 | } |
| 8026 | |
| 8027 | ImGuiKeyRoutingData* ImGui::GetShortcutRoutingData(ImGuiKeyChord key_chord) |
| 8028 | { |
no outgoing calls