ctrl drag&drop fix (use IsKeyDown instead of IsKeyPressed)
This commit is contained in:
		
							parent
							
								
									32ea140a61
								
							
						
					
					
						commit
						2382c19583
					
				|  | @ -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) { \ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 yohannd1
						yohannd1