From 421d5e3c73a91d1bbf3bf60700e76a7670daae76 Mon Sep 17 00:00:00 2001 From: IcePixelx <41352111+PixieCore@users.noreply.github.com> Date: Tue, 28 Dec 2021 03:07:37 +0100 Subject: [PATCH] Removed obselete funtion from ImGui::Hotkey --- r5dev/thirdparty/imgui/src/imgui_widgets.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/r5dev/thirdparty/imgui/src/imgui_widgets.cpp b/r5dev/thirdparty/imgui/src/imgui_widgets.cpp index 8be4538b..411bb639 100644 --- a/r5dev/thirdparty/imgui/src/imgui_widgets.cpp +++ b/r5dev/thirdparty/imgui/src/imgui_widgets.cpp @@ -8588,7 +8588,6 @@ bool ImGui::Hotkey(const char* label, int* key, const ImVec2& ssize) return false; } - const bool requestedFocus = ImGui::FocusableItemRegister(window, id); const bool isHovered = ImGui::ItemHoverable(frameBB, id); if (isHovered) { @@ -8598,7 +8597,7 @@ bool ImGui::Hotkey(const char* label, int* key, const ImVec2& ssize) const bool didClick = isHovered && io.MouseClicked[0]; - if (requestedFocus || didClick) + if (didClick) { if (g.ActiveId != id) {