ctrl drag&drop fix (use IsKeyDown instead of IsKeyPressed)

This commit is contained in:
yohannd1 2024-12-19 16:23:11 -03:00
parent 32ea140a61
commit 2382c19583

View file

@ -85,7 +85,7 @@ const char* sampleNote[12]={
int target=i; \ int target=i; \
bool markModified=false; \ bool markModified=false; \
if (_toMoveVar!=target) { \ if (_toMoveVar!=target) { \
if (ImGui::IsKeyPressed(ImGuiKey_ModCtrl)) { \ if (ImGui::IsKeyDown(ImGuiKey_ModCtrl)) { \
markModified=_swapFn(_toMoveVar,target); \ markModified=_swapFn(_toMoveVar,target); \
} else { \ } else { \
while (_toMoveVar>target) { \ while (_toMoveVar>target) { \