瀏覽代碼

Fixed (harmless) incorrect order of arguments in IsKeyChordPressed (#7657)

jungnitz 1 年之前
父節點
當前提交
b95b2b4574
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      imgui.cpp

+ 1 - 1
imgui.cpp

@@ -9725,7 +9725,7 @@ void ImGui::SetItemKeyOwner(ImGuiKey key, ImGuiInputFlags flags)
 // This is the only public API until we expose owner_id versions of the API as replacements.
 // This is the only public API until we expose owner_id versions of the API as replacements.
 bool ImGui::IsKeyChordPressed(ImGuiKeyChord key_chord)
 bool ImGui::IsKeyChordPressed(ImGuiKeyChord key_chord)
 {
 {
-    return IsKeyChordPressed(key_chord, 0, ImGuiInputFlags_None);
+    return IsKeyChordPressed(key_chord, ImGuiInputFlags_None, ImGuiKeyOwner_Any);
 }
 }
 
 
 // This is equivalent to comparing KeyMods + doing a IsKeyPressed()
 // This is equivalent to comparing KeyMods + doing a IsKeyPressed()