|
@@ -9743,6 +9743,10 @@ bool ImGui::Shortcut(ImGuiKeyChord key_chord, ImGuiInputFlags flags, ImGuiID own
|
|
|
|
|
|
if (!IsKeyChordPressed(key_chord, flags, owner_id))
|
|
if (!IsKeyChordPressed(key_chord, flags, owner_id))
|
|
return false;
|
|
return false;
|
|
|
|
+
|
|
|
|
+ // Claim mods during the press
|
|
|
|
+ SetKeyOwnersForKeyChord(key_chord & ImGuiMod_Mask_, owner_id);
|
|
|
|
+
|
|
IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByShortcut) == 0); // Passing flags not supported by this function!
|
|
IM_ASSERT((flags & ~ImGuiInputFlags_SupportedByShortcut) == 0); // Passing flags not supported by this function!
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|