From 2382c1958371f9c9ca2828e072682b9613b25fde Mon Sep 17 00:00:00 2001 From: yohannd1 Date: Thu, 19 Dec 2024 16:23:11 -0300 Subject: [PATCH] ctrl drag&drop fix (use IsKeyDown instead of IsKeyPressed) --- src/gui/dataList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/dataList.cpp b/src/gui/dataList.cpp index 5c536cf9a..795de9a13 100644 --- a/src/gui/dataList.cpp +++ b/src/gui/dataList.cpp @@ -85,7 +85,7 @@ const char* sampleNote[12]={ int target=i; \ bool markModified=false; \ if (_toMoveVar!=target) { \ - if (ImGui::IsKeyPressed(ImGuiKey_ModCtrl)) { \ + if (ImGui::IsKeyDown(ImGuiKey_ModCtrl)) { \ markModified=_swapFn(_toMoveVar,target); \ } else { \ while (_toMoveVar>target) { \